Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@filerobot/explorer / lib / components / Modals / EmbedVideo / EmbedVideo.constants.js
Size: Mime:
var _VIDEO_FEATURES;
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
import { compressVideo, convertVideo, transcodeVideo } from './EmbedVideo.utils';
export var VIDEO_FEATURES_IDS = {
  COMPRESSION: 'compression',
  CONVERSION: 'conversion',
  TRANSCODING: 'transcoding'
};
export var FEAT_KEYS_IDS = {
  COMPRESSION: 'compressed',
  CONVERSION: 'converted',
  TRANSCODING: 'playlists'
};
export var RESOLUTIONS_IDS = {
  480: '480p (SD)',
  720: '720P (HD)',
  1080: '1080p (FHD)',
  1440: '1440p (QHD)',
  4000: '4k (Ultra HD)'
};
export var VIDEO_FEATURES = (_VIDEO_FEATURES = {}, _defineProperty(_VIDEO_FEATURES, VIDEO_FEATURES_IDS.COMPRESSION, {
  i18nKeyFeatTitle: 'explorerEmbedModalCompressionVideoTitle',
  i18nKeyFeatButton: 'explorerEmbedModalCompressionVideoButton',
  i18nKeyReFeatButton: 'explorerEmbedModalReCompressionVideoButton',
  i18nKeyFeathint: 'explorerEmbedModalCompressionVideoHint',
  featJsonKey: FEAT_KEYS_IDS.COMPRESSION,
  choosenOptionsKey: 'target_resolutions',
  onClick: compressVideo
}), _defineProperty(_VIDEO_FEATURES, VIDEO_FEATURES_IDS.CONVERSION, {
  i18nKeyFeatTitle: 'explorerEmbedModalConversionVideoTitle',
  i18nKeyFeatButton: 'explorerEmbedModalConversionVideoButton',
  i18nKeyReFeatButton: 'explorerEmbedModalReConversionVideoButton',
  i18nKeyFeathint: 'explorerEmbedModalConversionVideoHint',
  featJsonKey: FEAT_KEYS_IDS.CONVERSION,
  choosenOptionsKey: 'target_formats',
  onClick: convertVideo
}), _defineProperty(_VIDEO_FEATURES, VIDEO_FEATURES_IDS.TRANSCODING, {
  i18nKeyFeatTitle: 'explorerEmbedModalAdaptiveStreamingVideoTitle',
  i18nKeyFeatButton: 'explorerEmbedModalAdaptiveStreamingVideoButton',
  i18nKeyReFeatButton: 'explorerEmbedModalReAdaptiveStreamingVideoButton',
  i18nKeyFeathint: 'explorerEmbedModalAdaptiveStreamingVideoHint',
  featJsonKey: FEAT_KEYS_IDS.TRANSCODING,
  choosenOptionsKey: 'protocol',
  onClick: transcodeVideo
}), _VIDEO_FEATURES);
export var COMPRESSION_REGEX = /.*_(.*p)_/;
export var CONVERSION_REGEX = /[^.]+$/;
export var TRANSCODING_REGEX = /[^/]+$/;