cloudinary-video-player 2.0.2-edge.2 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chapters.js +6 -509
- package/dist/chapters.light.js +6 -509
- package/dist/chapters.light.min.js +1 -1
- package/dist/chapters.min.js +1 -1
- package/dist/cld-video-player.css +1161 -0
- package/dist/cld-video-player.js +120 -84
- package/dist/cld-video-player.light.css +1161 -0
- package/dist/cld-video-player.light.js +120 -84
- package/dist/cld-video-player.light.min.css +1 -1
- package/dist/cld-video-player.light.min.js +1 -1
- package/dist/cld-video-player.min.css +1 -1
- package/dist/cld-video-player.min.js +1 -1
- package/dist/ima.js +6 -611
- package/dist/ima.light.js +6 -620
- package/dist/ima.light.min.js +1 -1
- package/dist/ima.min.js +1 -1
- package/dist/interaction-areas.js +6 -516
- package/dist/interaction-areas.light.js +6 -516
- package/dist/interaction-areas.light.min.js +1 -1
- package/dist/interaction-areas.min.js +1 -1
- package/dist/node_modules_lodash_throttle_js.js +449 -0
- package/dist/node_modules_lodash_throttle_js.light.js +449 -0
- package/dist/playlist.js +130 -549
- package/dist/playlist.light.js +130 -549
- package/dist/playlist.light.min.js +1 -1
- package/dist/playlist.min.js +1 -1
- package/dist/recommendations-overlay.js +6 -617
- package/dist/recommendations-overlay.light.js +6 -617
- package/dist/recommendations-overlay.light.min.js +1 -1
- package/dist/recommendations-overlay.min.js +1 -1
- package/dist/shoppable.js +7 -742
- package/dist/shoppable.light.js +7 -742
- package/dist/shoppable.light.min.js +1 -1
- package/dist/shoppable.min.js +1 -1
- package/lib/all.js +1 -1
- package/lib/chapters.js +1 -1
- package/lib/cld-video-player.js +1 -1
- package/lib/cld-video-player.min.css +10 -1
- package/lib/ima.js +1 -1
- package/lib/interaction-areas.js +1 -1
- package/lib/playlist.js +1 -1
- package/lib/recommendations-overlay.js +1 -1
- package/lib/shoppable.js +1 -1
- package/lib/videoPlayer.js +1 -1
- package/lib/videoPlayerWithProfile.js +1 -1
- package/package.json +1 -2
- package/dist/473.light.min.js +0 -2
- package/dist/473.min.js +0 -2
- package/dist/node_modules_css-loader_dist_runtime_api_js-node_modules_css-loader_dist_runtime_sourceMaps_j-64c8cd.js +0 -530
- package/dist/node_modules_css-loader_dist_runtime_api_js-node_modules_css-loader_dist_runtime_sourceMaps_j-64c8cd.light.js +0 -530
- package/lib/473.js +0 -2
- package/lib/all.min.css +0 -12
- package/lib/videoPlayer.min.css +0 -12
- package/lib/videoPlayerWithProfile.min.css +0 -12
|
@@ -216,7 +216,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
216
216
|
async function lazyRecommendationsOverlayComponent(player) {
|
|
217
217
|
try {
|
|
218
218
|
if (!player.getChild('recommendationsOverlay')) {
|
|
219
|
-
await
|
|
219
|
+
await Promise.all(/*! import() | recommendations-overlay */[__webpack_require__.e("styles"), __webpack_require__.e("recommendations-overlay")]).then(__webpack_require__.bind(__webpack_require__, /*! ./recommendations-overlay */ "./components/recommendations-overlay/recommendations-overlay.js"));
|
|
220
220
|
player.addChild('recommendationsOverlay');
|
|
221
221
|
}
|
|
222
222
|
return player;
|
|
@@ -599,6 +599,71 @@ const playedAtTime = function (currentTime, checkpoint) {
|
|
|
599
599
|
|
|
600
600
|
/***/ }),
|
|
601
601
|
|
|
602
|
+
/***/ "./index.js":
|
|
603
|
+
/*!******************!*\
|
|
604
|
+
!*** ./index.js ***!
|
|
605
|
+
\******************/
|
|
606
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
607
|
+
|
|
608
|
+
"use strict";
|
|
609
|
+
__webpack_require__.r(__webpack_exports__);
|
|
610
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
611
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
612
|
+
/* harmony export */ videoPlayer: () => (/* binding */ videoPlayer),
|
|
613
|
+
/* harmony export */ videoPlayerWithProfile: () => (/* binding */ videoPlayerWithProfile),
|
|
614
|
+
/* harmony export */ videoPlayers: () => (/* binding */ videoPlayers)
|
|
615
|
+
/* harmony export */ });
|
|
616
|
+
/* harmony import */ var assets_styles_main_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! assets/styles/main.scss */ "./assets/styles/main.scss");
|
|
617
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../node_modules/lodash/pick.js");
|
|
618
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
|
619
|
+
/* harmony import */ var _video_player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./video-player */ "./video-player.js");
|
|
620
|
+
/* harmony import */ var _video_player_profile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./video-player-profile */ "./video-player-profile.js");
|
|
621
|
+
/* harmony import */ var _utils_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/object */ "./utils/object.js");
|
|
622
|
+
/* harmony import */ var _video_player_const__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./video-player.const */ "./video-player.const.js");
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
const getConfig = function () {
|
|
630
|
+
let playerOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
631
|
+
let cloudinaryConfig = arguments.length > 1 ? arguments[1] : undefined;
|
|
632
|
+
const snakeCaseCloudinaryConfig = lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()((0,_utils_object__WEBPACK_IMPORTED_MODULE_4__.convertKeysToSnakeCase)(playerOptions), _video_player_const__WEBPACK_IMPORTED_MODULE_5__.CLOUDINARY_CONFIG_PARAM);
|
|
633
|
+
|
|
634
|
+
// pick cld-configurations and assign them to cloudinaryConfig
|
|
635
|
+
return Object.assign(playerOptions, {
|
|
636
|
+
cloudinaryConfig: cloudinaryConfig || snakeCaseCloudinaryConfig
|
|
637
|
+
});
|
|
638
|
+
};
|
|
639
|
+
const getVideoPlayer = config => (id, playerOptions, ready) => new _video_player__WEBPACK_IMPORTED_MODULE_2__["default"](id, getConfig(playerOptions, config), ready);
|
|
640
|
+
const getVideoPlayers = config => (selector, playerOptions, ready) => _video_player__WEBPACK_IMPORTED_MODULE_2__["default"].all(selector, getConfig(playerOptions, config), ready);
|
|
641
|
+
const getVideoPlayerWithProfile = config => (id, playerOptions, ready) => (0,_video_player_profile__WEBPACK_IMPORTED_MODULE_3__["default"])(id, getConfig(playerOptions, config), ready);
|
|
642
|
+
const videoPlayer = getVideoPlayer();
|
|
643
|
+
const videoPlayers = getVideoPlayers();
|
|
644
|
+
const videoPlayerWithProfile = getVideoPlayerWithProfile();
|
|
645
|
+
const cloudinaryVideoPlayerLegacyConfig = config => {
|
|
646
|
+
console.warn('Cloudinary.new() is deprecated and will be removed. Please use cloudinary.videoPlayer() instead.');
|
|
647
|
+
return {
|
|
648
|
+
videoPlayer: getVideoPlayer(config),
|
|
649
|
+
videoPlayers: getVideoPlayers(config)
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
const cloudinary = {
|
|
653
|
+
...(window.cloudinary || {}),
|
|
654
|
+
videoPlayer,
|
|
655
|
+
videoPlayers,
|
|
656
|
+
videoPlayerWithProfile,
|
|
657
|
+
Cloudinary: {
|
|
658
|
+
// Backwards compatibility with SDK v1
|
|
659
|
+
new: cloudinaryVideoPlayerLegacyConfig
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
window.cloudinary = cloudinary;
|
|
663
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cloudinary);
|
|
664
|
+
|
|
665
|
+
/***/ }),
|
|
666
|
+
|
|
602
667
|
/***/ "./mixins/eventable.js":
|
|
603
668
|
/*!*****************************!*\
|
|
604
669
|
!*** ./mixins/eventable.js ***!
|
|
@@ -1225,7 +1290,7 @@ async function lazyChaptersPlugin(options) {
|
|
|
1225
1290
|
try {
|
|
1226
1291
|
const {
|
|
1227
1292
|
default: initPlugin
|
|
1228
|
-
} = await
|
|
1293
|
+
} = await Promise.all(/*! import() | chapters */[__webpack_require__.e("styles"), __webpack_require__.e("chapters")]).then(__webpack_require__.bind(__webpack_require__, /*! ./chapters */ "./plugins/chapters/chapters.js"));
|
|
1229
1294
|
player.ready(() => initPlugin(options, player));
|
|
1230
1295
|
} catch (error) {
|
|
1231
1296
|
console.error('Failed to load plugin:', error);
|
|
@@ -1265,7 +1330,7 @@ class CloudinaryAnalytics {
|
|
|
1265
1330
|
this.currentVideMetadata = metadata;
|
|
1266
1331
|
this.cloudinaryAnalytics.startManualTracking(metadata, {
|
|
1267
1332
|
videoPlayerType: 'cloudinary video player',
|
|
1268
|
-
videoPlayerVersion: "2.0.2
|
|
1333
|
+
videoPlayerVersion: "2.0.2"
|
|
1269
1334
|
});
|
|
1270
1335
|
} else if (this.currentVideMetadata.cloudName !== metadata.cloudName || this.currentVideMetadata.publicId !== metadata.publicId) {
|
|
1271
1336
|
this.cloudinaryAnalytics.stopManualTracking();
|
|
@@ -1619,7 +1684,7 @@ class CloudinaryContext {
|
|
|
1619
1684
|
options.sourceTypes = options.sourceTypes || _this.sourceTypes();
|
|
1620
1685
|
options.poster = options.poster || posterOptionsForCurrent();
|
|
1621
1686
|
options.queryParams = Object.assign(options.queryParams || {}, options.usageReport ? {
|
|
1622
|
-
_s: "vp-".concat("2.0.2
|
|
1687
|
+
_s: "vp-".concat("2.0.2")
|
|
1623
1688
|
} : {});
|
|
1624
1689
|
if (options.sourceTypes.indexOf('audio') > -1) {
|
|
1625
1690
|
builtSrc = new _models_audio_source_audio_source__WEBPACK_IMPORTED_MODULE_7__["default"](publicId, options);
|
|
@@ -2680,7 +2745,7 @@ const contextMenuContent = player => {
|
|
|
2680
2745
|
const isFullscreen = player.isFullscreen();
|
|
2681
2746
|
const aboutMenuItem = {
|
|
2682
2747
|
class: 'player-version',
|
|
2683
|
-
label: 'Cloudinary Player v' + "2.0.2
|
|
2748
|
+
label: 'Cloudinary Player v' + "2.0.2"
|
|
2684
2749
|
};
|
|
2685
2750
|
if (!player.controls()) {
|
|
2686
2751
|
return [aboutMenuItem];
|
|
@@ -3182,7 +3247,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3182
3247
|
|
|
3183
3248
|
|
|
3184
3249
|
async function imaPlugin(player, playerOptions) {
|
|
3185
|
-
await
|
|
3250
|
+
await Promise.all(/*! import() | ima */[__webpack_require__.e("styles"), __webpack_require__.e("ima")]).then(__webpack_require__.bind(__webpack_require__, /*! ./ima */ "./plugins/ima/ima.js"));
|
|
3186
3251
|
const loaded = {
|
|
3187
3252
|
contribAdsLoaded: lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(player.ads),
|
|
3188
3253
|
imaAdsLoaded: typeof google === 'object' && typeof google.ima === 'object'
|
|
@@ -3313,7 +3378,7 @@ async function lazyInteractionAreasPlugin(player, playerOptions, videojsOptions)
|
|
|
3313
3378
|
try {
|
|
3314
3379
|
const {
|
|
3315
3380
|
interactionAreasService
|
|
3316
|
-
} = await Promise.all(/*! import() | interaction-areas */[__webpack_require__.e("
|
|
3381
|
+
} = await Promise.all(/*! import() | interaction-areas */[__webpack_require__.e("styles"), __webpack_require__.e("node_modules_lodash_throttle_js"), __webpack_require__.e("interaction-areas")]).then(__webpack_require__.bind(__webpack_require__, /*! ./interaction-areas.service */ "./plugins/interaction-areas/interaction-areas.service.js"));
|
|
3317
3382
|
interactionAreasService(player, playerOptions, videojsOptions);
|
|
3318
3383
|
} catch (error) {
|
|
3319
3384
|
console.error('Failed to load plugin:', error);
|
|
@@ -3450,7 +3515,7 @@ async function lazyPlugin(options) {
|
|
|
3450
3515
|
try {
|
|
3451
3516
|
const {
|
|
3452
3517
|
default: playlistPlugin
|
|
3453
|
-
} = await Promise.all(/*! import() | playlist */[__webpack_require__.e("
|
|
3518
|
+
} = await Promise.all(/*! import() | playlist */[__webpack_require__.e("styles"), __webpack_require__.e("playlist")]).then(__webpack_require__.bind(__webpack_require__, /*! ./playlist */ "./plugins/playlist/playlist.js"));
|
|
3454
3519
|
const playlist = playlistPlugin(player, options);
|
|
3455
3520
|
player.cloudinary.playlist = playlist;
|
|
3456
3521
|
return playlist;
|
|
@@ -3475,7 +3540,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3475
3540
|
async function lazyShoppablePlugin(player, options) {
|
|
3476
3541
|
const {
|
|
3477
3542
|
default: ShoppableWidget
|
|
3478
|
-
} = await Promise.all(/*! import() | shoppable */[__webpack_require__.e("
|
|
3543
|
+
} = await Promise.all(/*! import() | shoppable */[__webpack_require__.e("styles"), __webpack_require__.e("node_modules_lodash_throttle_js"), __webpack_require__.e("shoppable")]).then(__webpack_require__.bind(__webpack_require__, /*! ../../components/shoppable-bar/shoppable-widget */ "./components/shoppable-bar/shoppable-widget.js"));
|
|
3479
3544
|
new ShoppableWidget(player, options.shoppable).init();
|
|
3480
3545
|
}
|
|
3481
3546
|
|
|
@@ -5023,7 +5088,7 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_8__["default"].mixin(_
|
|
|
5023
5088
|
const analyticsData = (0,_utils_get_analytics_player_options__WEBPACK_IMPORTED_MODULE_17__.getAnalyticsFromPlayerOptions)(options);
|
|
5024
5089
|
const analyticsParams = new URLSearchParams(analyticsData).toString();
|
|
5025
5090
|
const baseParams = new URLSearchParams({
|
|
5026
|
-
vpVersion: "2.0.2
|
|
5091
|
+
vpVersion: "2.0.2",
|
|
5027
5092
|
vpInstanceId: this.getVPInstanceId(),
|
|
5028
5093
|
// #if (process.env.WEBPACK_BUILD_LIGHT)
|
|
5029
5094
|
vpLightBuild: true,
|
|
@@ -47059,6 +47124,38 @@ module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"contro
|
|
|
47059
47124
|
/******/ __webpack_require__.m = __webpack_modules__;
|
|
47060
47125
|
/******/
|
|
47061
47126
|
/************************************************************************/
|
|
47127
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
47128
|
+
/******/ (() => {
|
|
47129
|
+
/******/ var deferred = [];
|
|
47130
|
+
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
|
|
47131
|
+
/******/ if(chunkIds) {
|
|
47132
|
+
/******/ priority = priority || 0;
|
|
47133
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
47134
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
47135
|
+
/******/ return;
|
|
47136
|
+
/******/ }
|
|
47137
|
+
/******/ var notFulfilled = Infinity;
|
|
47138
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
47139
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
47140
|
+
/******/ var fulfilled = true;
|
|
47141
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
47142
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
|
47143
|
+
/******/ chunkIds.splice(j--, 1);
|
|
47144
|
+
/******/ } else {
|
|
47145
|
+
/******/ fulfilled = false;
|
|
47146
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
47147
|
+
/******/ }
|
|
47148
|
+
/******/ }
|
|
47149
|
+
/******/ if(fulfilled) {
|
|
47150
|
+
/******/ deferred.splice(i--, 1)
|
|
47151
|
+
/******/ var r = fn();
|
|
47152
|
+
/******/ if (r !== undefined) result = r;
|
|
47153
|
+
/******/ }
|
|
47154
|
+
/******/ }
|
|
47155
|
+
/******/ return result;
|
|
47156
|
+
/******/ };
|
|
47157
|
+
/******/ })();
|
|
47158
|
+
/******/
|
|
47062
47159
|
/******/ /* webpack/runtime/compat get default export */
|
|
47063
47160
|
/******/ (() => {
|
|
47064
47161
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
@@ -47228,7 +47325,8 @@ module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"contro
|
|
|
47228
47325
|
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
47229
47326
|
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
47230
47327
|
/******/ var installedChunks = {
|
|
47231
|
-
/******/ "cld-video-player": 0
|
|
47328
|
+
/******/ "cld-video-player": 0,
|
|
47329
|
+
/******/ "styles": 0
|
|
47232
47330
|
/******/ };
|
|
47233
47331
|
/******/
|
|
47234
47332
|
/******/ __webpack_require__.f.j = (chunkId, promises) => {
|
|
@@ -47240,7 +47338,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"contro
|
|
|
47240
47338
|
/******/ if(installedChunkData) {
|
|
47241
47339
|
/******/ promises.push(installedChunkData[2]);
|
|
47242
47340
|
/******/ } else {
|
|
47243
|
-
/******/ if(
|
|
47341
|
+
/******/ if("styles" != chunkId) {
|
|
47244
47342
|
/******/ // setup Promise in chunk cache
|
|
47245
47343
|
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
47246
47344
|
/******/ promises.push(installedChunkData[2] = promise);
|
|
@@ -47265,7 +47363,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"contro
|
|
|
47265
47363
|
/******/ }
|
|
47266
47364
|
/******/ };
|
|
47267
47365
|
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
47268
|
-
/******/ }
|
|
47366
|
+
/******/ } else installedChunks[chunkId] = 0;
|
|
47269
47367
|
/******/ }
|
|
47270
47368
|
/******/ }
|
|
47271
47369
|
/******/ };
|
|
@@ -47278,7 +47376,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"contro
|
|
|
47278
47376
|
/******/
|
|
47279
47377
|
/******/ // no HMR manifest
|
|
47280
47378
|
/******/
|
|
47281
|
-
/******/
|
|
47379
|
+
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
47282
47380
|
/******/
|
|
47283
47381
|
/******/ // install a JSONP callback for chunk loading
|
|
47284
47382
|
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
@@ -47302,7 +47400,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"contro
|
|
|
47302
47400
|
/******/ }
|
|
47303
47401
|
/******/ installedChunks[chunkId] = 0;
|
|
47304
47402
|
/******/ }
|
|
47305
|
-
/******/
|
|
47403
|
+
/******/ return __webpack_require__.O(result);
|
|
47306
47404
|
/******/ }
|
|
47307
47405
|
/******/
|
|
47308
47406
|
/******/ var chunkLoadingGlobal = self["cloudinaryVideoPlayerChunkLoading"] = self["cloudinaryVideoPlayerChunkLoading"] || [];
|
|
@@ -47310,76 +47408,14 @@ module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"contro
|
|
|
47310
47408
|
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
47311
47409
|
/******/ })();
|
|
47312
47410
|
/******/
|
|
47313
|
-
/******/ /* webpack/runtime/nonce */
|
|
47314
|
-
/******/ (() => {
|
|
47315
|
-
/******/ __webpack_require__.nc = undefined;
|
|
47316
|
-
/******/ })();
|
|
47317
|
-
/******/
|
|
47318
47411
|
/************************************************************************/
|
|
47319
|
-
|
|
47320
|
-
//
|
|
47321
|
-
|
|
47322
|
-
|
|
47323
|
-
|
|
47324
|
-
|
|
47325
|
-
|
|
47326
|
-
__webpack_require__.r(__webpack_exports__);
|
|
47327
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
47328
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
47329
|
-
/* harmony export */ videoPlayer: () => (/* binding */ videoPlayer),
|
|
47330
|
-
/* harmony export */ videoPlayerWithProfile: () => (/* binding */ videoPlayerWithProfile),
|
|
47331
|
-
/* harmony export */ videoPlayers: () => (/* binding */ videoPlayers)
|
|
47332
|
-
/* harmony export */ });
|
|
47333
|
-
/* harmony import */ var assets_styles_main_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! assets/styles/main.scss */ "./assets/styles/main.scss");
|
|
47334
|
-
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../node_modules/lodash/pick.js");
|
|
47335
|
-
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
|
47336
|
-
/* harmony import */ var _video_player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./video-player */ "./video-player.js");
|
|
47337
|
-
/* harmony import */ var _video_player_profile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./video-player-profile */ "./video-player-profile.js");
|
|
47338
|
-
/* harmony import */ var _utils_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/object */ "./utils/object.js");
|
|
47339
|
-
/* harmony import */ var _video_player_const__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./video-player.const */ "./video-player.const.js");
|
|
47340
|
-
|
|
47341
|
-
|
|
47342
|
-
|
|
47343
|
-
|
|
47344
|
-
|
|
47345
|
-
|
|
47346
|
-
const getConfig = function () {
|
|
47347
|
-
let playerOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
47348
|
-
let cloudinaryConfig = arguments.length > 1 ? arguments[1] : undefined;
|
|
47349
|
-
const snakeCaseCloudinaryConfig = lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()((0,_utils_object__WEBPACK_IMPORTED_MODULE_4__.convertKeysToSnakeCase)(playerOptions), _video_player_const__WEBPACK_IMPORTED_MODULE_5__.CLOUDINARY_CONFIG_PARAM);
|
|
47350
|
-
|
|
47351
|
-
// pick cld-configurations and assign them to cloudinaryConfig
|
|
47352
|
-
return Object.assign(playerOptions, {
|
|
47353
|
-
cloudinaryConfig: cloudinaryConfig || snakeCaseCloudinaryConfig
|
|
47354
|
-
});
|
|
47355
|
-
};
|
|
47356
|
-
const getVideoPlayer = config => (id, playerOptions, ready) => new _video_player__WEBPACK_IMPORTED_MODULE_2__["default"](id, getConfig(playerOptions, config), ready);
|
|
47357
|
-
const getVideoPlayers = config => (selector, playerOptions, ready) => _video_player__WEBPACK_IMPORTED_MODULE_2__["default"].all(selector, getConfig(playerOptions, config), ready);
|
|
47358
|
-
const getVideoPlayerWithProfile = config => (id, playerOptions, ready) => (0,_video_player_profile__WEBPACK_IMPORTED_MODULE_3__["default"])(id, getConfig(playerOptions, config), ready);
|
|
47359
|
-
const videoPlayer = getVideoPlayer();
|
|
47360
|
-
const videoPlayers = getVideoPlayers();
|
|
47361
|
-
const videoPlayerWithProfile = getVideoPlayerWithProfile();
|
|
47362
|
-
const cloudinaryVideoPlayerLegacyConfig = config => {
|
|
47363
|
-
console.warn('Cloudinary.new() is deprecated and will be removed. Please use cloudinary.videoPlayer() instead.');
|
|
47364
|
-
return {
|
|
47365
|
-
videoPlayer: getVideoPlayer(config),
|
|
47366
|
-
videoPlayers: getVideoPlayers(config)
|
|
47367
|
-
};
|
|
47368
|
-
};
|
|
47369
|
-
const cloudinary = {
|
|
47370
|
-
...(window.cloudinary || {}),
|
|
47371
|
-
videoPlayer,
|
|
47372
|
-
videoPlayers,
|
|
47373
|
-
videoPlayerWithProfile,
|
|
47374
|
-
Cloudinary: {
|
|
47375
|
-
// Backwards compatibility with SDK v1
|
|
47376
|
-
new: cloudinaryVideoPlayerLegacyConfig
|
|
47377
|
-
}
|
|
47378
|
-
};
|
|
47379
|
-
window.cloudinary = cloudinary;
|
|
47380
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cloudinary);
|
|
47381
|
-
})();
|
|
47382
|
-
|
|
47412
|
+
/******/
|
|
47413
|
+
/******/ // startup
|
|
47414
|
+
/******/ // Load entry module and return exports
|
|
47415
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
47416
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["styles"], () => (__webpack_require__("./index.js")))
|
|
47417
|
+
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
47418
|
+
/******/
|
|
47383
47419
|
/******/ return __webpack_exports__;
|
|
47384
47420
|
/******/ })()
|
|
47385
47421
|
;
|