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
package/dist/cld-video-player.js
CHANGED
|
@@ -8431,7 +8431,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8431
8431
|
async function lazyRecommendationsOverlayComponent(player) {
|
|
8432
8432
|
try {
|
|
8433
8433
|
if (!player.getChild('recommendationsOverlay')) {
|
|
8434
|
-
await
|
|
8434
|
+
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"));
|
|
8435
8435
|
player.addChild('recommendationsOverlay');
|
|
8436
8436
|
}
|
|
8437
8437
|
return player;
|
|
@@ -8814,6 +8814,71 @@ const playedAtTime = function (currentTime, checkpoint) {
|
|
|
8814
8814
|
|
|
8815
8815
|
/***/ }),
|
|
8816
8816
|
|
|
8817
|
+
/***/ "./index.js":
|
|
8818
|
+
/*!******************!*\
|
|
8819
|
+
!*** ./index.js ***!
|
|
8820
|
+
\******************/
|
|
8821
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8822
|
+
|
|
8823
|
+
"use strict";
|
|
8824
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8825
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8826
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
8827
|
+
/* harmony export */ videoPlayer: () => (/* binding */ videoPlayer),
|
|
8828
|
+
/* harmony export */ videoPlayerWithProfile: () => (/* binding */ videoPlayerWithProfile),
|
|
8829
|
+
/* harmony export */ videoPlayers: () => (/* binding */ videoPlayers)
|
|
8830
|
+
/* harmony export */ });
|
|
8831
|
+
/* harmony import */ var assets_styles_main_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! assets/styles/main.scss */ "./assets/styles/main.scss");
|
|
8832
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../node_modules/lodash/pick.js");
|
|
8833
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
|
8834
|
+
/* harmony import */ var _video_player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./video-player */ "./video-player.js");
|
|
8835
|
+
/* harmony import */ var _video_player_profile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./video-player-profile */ "./video-player-profile.js");
|
|
8836
|
+
/* harmony import */ var _utils_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/object */ "./utils/object.js");
|
|
8837
|
+
/* harmony import */ var _video_player_const__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./video-player.const */ "./video-player.const.js");
|
|
8838
|
+
|
|
8839
|
+
|
|
8840
|
+
|
|
8841
|
+
|
|
8842
|
+
|
|
8843
|
+
|
|
8844
|
+
const getConfig = function () {
|
|
8845
|
+
let playerOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8846
|
+
let cloudinaryConfig = arguments.length > 1 ? arguments[1] : undefined;
|
|
8847
|
+
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);
|
|
8848
|
+
|
|
8849
|
+
// pick cld-configurations and assign them to cloudinaryConfig
|
|
8850
|
+
return Object.assign(playerOptions, {
|
|
8851
|
+
cloudinaryConfig: cloudinaryConfig || snakeCaseCloudinaryConfig
|
|
8852
|
+
});
|
|
8853
|
+
};
|
|
8854
|
+
const getVideoPlayer = config => (id, playerOptions, ready) => new _video_player__WEBPACK_IMPORTED_MODULE_2__["default"](id, getConfig(playerOptions, config), ready);
|
|
8855
|
+
const getVideoPlayers = config => (selector, playerOptions, ready) => _video_player__WEBPACK_IMPORTED_MODULE_2__["default"].all(selector, getConfig(playerOptions, config), ready);
|
|
8856
|
+
const getVideoPlayerWithProfile = config => (id, playerOptions, ready) => (0,_video_player_profile__WEBPACK_IMPORTED_MODULE_3__["default"])(id, getConfig(playerOptions, config), ready);
|
|
8857
|
+
const videoPlayer = getVideoPlayer();
|
|
8858
|
+
const videoPlayers = getVideoPlayers();
|
|
8859
|
+
const videoPlayerWithProfile = getVideoPlayerWithProfile();
|
|
8860
|
+
const cloudinaryVideoPlayerLegacyConfig = config => {
|
|
8861
|
+
console.warn('Cloudinary.new() is deprecated and will be removed. Please use cloudinary.videoPlayer() instead.');
|
|
8862
|
+
return {
|
|
8863
|
+
videoPlayer: getVideoPlayer(config),
|
|
8864
|
+
videoPlayers: getVideoPlayers(config)
|
|
8865
|
+
};
|
|
8866
|
+
};
|
|
8867
|
+
const cloudinary = {
|
|
8868
|
+
...(window.cloudinary || {}),
|
|
8869
|
+
videoPlayer,
|
|
8870
|
+
videoPlayers,
|
|
8871
|
+
videoPlayerWithProfile,
|
|
8872
|
+
Cloudinary: {
|
|
8873
|
+
// Backwards compatibility with SDK v1
|
|
8874
|
+
new: cloudinaryVideoPlayerLegacyConfig
|
|
8875
|
+
}
|
|
8876
|
+
};
|
|
8877
|
+
window.cloudinary = cloudinary;
|
|
8878
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cloudinary);
|
|
8879
|
+
|
|
8880
|
+
/***/ }),
|
|
8881
|
+
|
|
8817
8882
|
/***/ "./mixins/eventable.js":
|
|
8818
8883
|
/*!*****************************!*\
|
|
8819
8884
|
!*** ./mixins/eventable.js ***!
|
|
@@ -9440,7 +9505,7 @@ async function lazyChaptersPlugin(options) {
|
|
|
9440
9505
|
try {
|
|
9441
9506
|
const {
|
|
9442
9507
|
default: initPlugin
|
|
9443
|
-
} = await
|
|
9508
|
+
} = await Promise.all(/*! import() | chapters */[__webpack_require__.e("styles"), __webpack_require__.e("chapters")]).then(__webpack_require__.bind(__webpack_require__, /*! ./chapters */ "./plugins/chapters/chapters.js"));
|
|
9444
9509
|
player.ready(() => initPlugin(options, player));
|
|
9445
9510
|
} catch (error) {
|
|
9446
9511
|
console.error('Failed to load plugin:', error);
|
|
@@ -9480,7 +9545,7 @@ class CloudinaryAnalytics {
|
|
|
9480
9545
|
this.currentVideMetadata = metadata;
|
|
9481
9546
|
this.cloudinaryAnalytics.startManualTracking(metadata, {
|
|
9482
9547
|
videoPlayerType: 'cloudinary video player',
|
|
9483
|
-
videoPlayerVersion: "2.0.2
|
|
9548
|
+
videoPlayerVersion: "2.0.2"
|
|
9484
9549
|
});
|
|
9485
9550
|
} else if (this.currentVideMetadata.cloudName !== metadata.cloudName || this.currentVideMetadata.publicId !== metadata.publicId) {
|
|
9486
9551
|
this.cloudinaryAnalytics.stopManualTracking();
|
|
@@ -9834,7 +9899,7 @@ class CloudinaryContext {
|
|
|
9834
9899
|
options.sourceTypes = options.sourceTypes || _this.sourceTypes();
|
|
9835
9900
|
options.poster = options.poster || posterOptionsForCurrent();
|
|
9836
9901
|
options.queryParams = Object.assign(options.queryParams || {}, options.usageReport ? {
|
|
9837
|
-
_s: "vp-".concat("2.0.2
|
|
9902
|
+
_s: "vp-".concat("2.0.2")
|
|
9838
9903
|
} : {});
|
|
9839
9904
|
if (options.sourceTypes.indexOf('audio') > -1) {
|
|
9840
9905
|
builtSrc = new _models_audio_source_audio_source__WEBPACK_IMPORTED_MODULE_7__["default"](publicId, options);
|
|
@@ -10895,7 +10960,7 @@ const contextMenuContent = player => {
|
|
|
10895
10960
|
const isFullscreen = player.isFullscreen();
|
|
10896
10961
|
const aboutMenuItem = {
|
|
10897
10962
|
class: 'player-version',
|
|
10898
|
-
label: 'Cloudinary Player v' + "2.0.2
|
|
10963
|
+
label: 'Cloudinary Player v' + "2.0.2"
|
|
10899
10964
|
};
|
|
10900
10965
|
if (!player.controls()) {
|
|
10901
10966
|
return [aboutMenuItem];
|
|
@@ -11397,7 +11462,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11397
11462
|
|
|
11398
11463
|
|
|
11399
11464
|
async function imaPlugin(player, playerOptions) {
|
|
11400
|
-
await
|
|
11465
|
+
await Promise.all(/*! import() | ima */[__webpack_require__.e("styles"), __webpack_require__.e("ima")]).then(__webpack_require__.bind(__webpack_require__, /*! ./ima */ "./plugins/ima/ima.js"));
|
|
11401
11466
|
const loaded = {
|
|
11402
11467
|
contribAdsLoaded: lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(player.ads),
|
|
11403
11468
|
imaAdsLoaded: typeof google === 'object' && typeof google.ima === 'object'
|
|
@@ -11529,7 +11594,7 @@ async function lazyInteractionAreasPlugin(player, playerOptions, videojsOptions)
|
|
|
11529
11594
|
try {
|
|
11530
11595
|
const {
|
|
11531
11596
|
interactionAreasService
|
|
11532
|
-
} = await Promise.all(/*! import() | interaction-areas */[__webpack_require__.e("
|
|
11597
|
+
} = 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"));
|
|
11533
11598
|
interactionAreasService(player, playerOptions, videojsOptions);
|
|
11534
11599
|
} catch (error) {
|
|
11535
11600
|
console.error('Failed to load plugin:', error);
|
|
@@ -11666,7 +11731,7 @@ async function lazyPlugin(options) {
|
|
|
11666
11731
|
try {
|
|
11667
11732
|
const {
|
|
11668
11733
|
default: playlistPlugin
|
|
11669
|
-
} = await Promise.all(/*! import() | playlist */[__webpack_require__.e("
|
|
11734
|
+
} = await Promise.all(/*! import() | playlist */[__webpack_require__.e("styles"), __webpack_require__.e("playlist")]).then(__webpack_require__.bind(__webpack_require__, /*! ./playlist */ "./plugins/playlist/playlist.js"));
|
|
11670
11735
|
const playlist = playlistPlugin(player, options);
|
|
11671
11736
|
player.cloudinary.playlist = playlist;
|
|
11672
11737
|
return playlist;
|
|
@@ -11691,7 +11756,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11691
11756
|
async function lazyShoppablePlugin(player, options) {
|
|
11692
11757
|
const {
|
|
11693
11758
|
default: ShoppableWidget
|
|
11694
|
-
} = await Promise.all(/*! import() | shoppable */[__webpack_require__.e("
|
|
11759
|
+
} = 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"));
|
|
11695
11760
|
new ShoppableWidget(player, options.shoppable).init();
|
|
11696
11761
|
}
|
|
11697
11762
|
|
|
@@ -13528,7 +13593,7 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_8__["default"].mixin(_
|
|
|
13528
13593
|
const analyticsData = (0,_utils_get_analytics_player_options__WEBPACK_IMPORTED_MODULE_17__.getAnalyticsFromPlayerOptions)(options);
|
|
13529
13594
|
const analyticsParams = new URLSearchParams(analyticsData).toString();
|
|
13530
13595
|
const baseParams = new URLSearchParams({
|
|
13531
|
-
vpVersion: "2.0.2
|
|
13596
|
+
vpVersion: "2.0.2",
|
|
13532
13597
|
vpInstanceId: this.getVPInstanceId(),
|
|
13533
13598
|
// #if (process.env.WEBPACK_BUILD_LIGHT)
|
|
13534
13599
|
// vpLightBuild: true,
|
|
@@ -86697,6 +86762,38 @@ module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"contro
|
|
|
86697
86762
|
/******/ __webpack_require__.m = __webpack_modules__;
|
|
86698
86763
|
/******/
|
|
86699
86764
|
/************************************************************************/
|
|
86765
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
86766
|
+
/******/ (() => {
|
|
86767
|
+
/******/ var deferred = [];
|
|
86768
|
+
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
|
|
86769
|
+
/******/ if(chunkIds) {
|
|
86770
|
+
/******/ priority = priority || 0;
|
|
86771
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
86772
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
86773
|
+
/******/ return;
|
|
86774
|
+
/******/ }
|
|
86775
|
+
/******/ var notFulfilled = Infinity;
|
|
86776
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
86777
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
86778
|
+
/******/ var fulfilled = true;
|
|
86779
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
86780
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
|
86781
|
+
/******/ chunkIds.splice(j--, 1);
|
|
86782
|
+
/******/ } else {
|
|
86783
|
+
/******/ fulfilled = false;
|
|
86784
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
86785
|
+
/******/ }
|
|
86786
|
+
/******/ }
|
|
86787
|
+
/******/ if(fulfilled) {
|
|
86788
|
+
/******/ deferred.splice(i--, 1)
|
|
86789
|
+
/******/ var r = fn();
|
|
86790
|
+
/******/ if (r !== undefined) result = r;
|
|
86791
|
+
/******/ }
|
|
86792
|
+
/******/ }
|
|
86793
|
+
/******/ return result;
|
|
86794
|
+
/******/ };
|
|
86795
|
+
/******/ })();
|
|
86796
|
+
/******/
|
|
86700
86797
|
/******/ /* webpack/runtime/compat get default export */
|
|
86701
86798
|
/******/ (() => {
|
|
86702
86799
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
@@ -86866,7 +86963,8 @@ module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"contro
|
|
|
86866
86963
|
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
86867
86964
|
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
|
86868
86965
|
/******/ var installedChunks = {
|
|
86869
|
-
/******/ "cld-video-player": 0
|
|
86966
|
+
/******/ "cld-video-player": 0,
|
|
86967
|
+
/******/ "styles": 0
|
|
86870
86968
|
/******/ };
|
|
86871
86969
|
/******/
|
|
86872
86970
|
/******/ __webpack_require__.f.j = (chunkId, promises) => {
|
|
@@ -86878,7 +86976,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"contro
|
|
|
86878
86976
|
/******/ if(installedChunkData) {
|
|
86879
86977
|
/******/ promises.push(installedChunkData[2]);
|
|
86880
86978
|
/******/ } else {
|
|
86881
|
-
/******/ if(
|
|
86979
|
+
/******/ if("styles" != chunkId) {
|
|
86882
86980
|
/******/ // setup Promise in chunk cache
|
|
86883
86981
|
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
|
|
86884
86982
|
/******/ promises.push(installedChunkData[2] = promise);
|
|
@@ -86903,7 +87001,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"contro
|
|
|
86903
87001
|
/******/ }
|
|
86904
87002
|
/******/ };
|
|
86905
87003
|
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
|
|
86906
|
-
/******/ }
|
|
87004
|
+
/******/ } else installedChunks[chunkId] = 0;
|
|
86907
87005
|
/******/ }
|
|
86908
87006
|
/******/ }
|
|
86909
87007
|
/******/ };
|
|
@@ -86916,7 +87014,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"contro
|
|
|
86916
87014
|
/******/
|
|
86917
87015
|
/******/ // no HMR manifest
|
|
86918
87016
|
/******/
|
|
86919
|
-
/******/
|
|
87017
|
+
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
86920
87018
|
/******/
|
|
86921
87019
|
/******/ // install a JSONP callback for chunk loading
|
|
86922
87020
|
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
|
@@ -86940,7 +87038,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"contro
|
|
|
86940
87038
|
/******/ }
|
|
86941
87039
|
/******/ installedChunks[chunkId] = 0;
|
|
86942
87040
|
/******/ }
|
|
86943
|
-
/******/
|
|
87041
|
+
/******/ return __webpack_require__.O(result);
|
|
86944
87042
|
/******/ }
|
|
86945
87043
|
/******/
|
|
86946
87044
|
/******/ var chunkLoadingGlobal = self["cloudinaryVideoPlayerChunkLoading"] = self["cloudinaryVideoPlayerChunkLoading"] || [];
|
|
@@ -86948,76 +87046,14 @@ module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"contro
|
|
|
86948
87046
|
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
86949
87047
|
/******/ })();
|
|
86950
87048
|
/******/
|
|
86951
|
-
/******/ /* webpack/runtime/nonce */
|
|
86952
|
-
/******/ (() => {
|
|
86953
|
-
/******/ __webpack_require__.nc = undefined;
|
|
86954
|
-
/******/ })();
|
|
86955
|
-
/******/
|
|
86956
87049
|
/************************************************************************/
|
|
86957
|
-
|
|
86958
|
-
//
|
|
86959
|
-
|
|
86960
|
-
|
|
86961
|
-
|
|
86962
|
-
|
|
86963
|
-
|
|
86964
|
-
__webpack_require__.r(__webpack_exports__);
|
|
86965
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
86966
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
86967
|
-
/* harmony export */ videoPlayer: () => (/* binding */ videoPlayer),
|
|
86968
|
-
/* harmony export */ videoPlayerWithProfile: () => (/* binding */ videoPlayerWithProfile),
|
|
86969
|
-
/* harmony export */ videoPlayers: () => (/* binding */ videoPlayers)
|
|
86970
|
-
/* harmony export */ });
|
|
86971
|
-
/* harmony import */ var assets_styles_main_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! assets/styles/main.scss */ "./assets/styles/main.scss");
|
|
86972
|
-
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../node_modules/lodash/pick.js");
|
|
86973
|
-
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
|
86974
|
-
/* harmony import */ var _video_player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./video-player */ "./video-player.js");
|
|
86975
|
-
/* harmony import */ var _video_player_profile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./video-player-profile */ "./video-player-profile.js");
|
|
86976
|
-
/* harmony import */ var _utils_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/object */ "./utils/object.js");
|
|
86977
|
-
/* harmony import */ var _video_player_const__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./video-player.const */ "./video-player.const.js");
|
|
86978
|
-
|
|
86979
|
-
|
|
86980
|
-
|
|
86981
|
-
|
|
86982
|
-
|
|
86983
|
-
|
|
86984
|
-
const getConfig = function () {
|
|
86985
|
-
let playerOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
86986
|
-
let cloudinaryConfig = arguments.length > 1 ? arguments[1] : undefined;
|
|
86987
|
-
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);
|
|
86988
|
-
|
|
86989
|
-
// pick cld-configurations and assign them to cloudinaryConfig
|
|
86990
|
-
return Object.assign(playerOptions, {
|
|
86991
|
-
cloudinaryConfig: cloudinaryConfig || snakeCaseCloudinaryConfig
|
|
86992
|
-
});
|
|
86993
|
-
};
|
|
86994
|
-
const getVideoPlayer = config => (id, playerOptions, ready) => new _video_player__WEBPACK_IMPORTED_MODULE_2__["default"](id, getConfig(playerOptions, config), ready);
|
|
86995
|
-
const getVideoPlayers = config => (selector, playerOptions, ready) => _video_player__WEBPACK_IMPORTED_MODULE_2__["default"].all(selector, getConfig(playerOptions, config), ready);
|
|
86996
|
-
const getVideoPlayerWithProfile = config => (id, playerOptions, ready) => (0,_video_player_profile__WEBPACK_IMPORTED_MODULE_3__["default"])(id, getConfig(playerOptions, config), ready);
|
|
86997
|
-
const videoPlayer = getVideoPlayer();
|
|
86998
|
-
const videoPlayers = getVideoPlayers();
|
|
86999
|
-
const videoPlayerWithProfile = getVideoPlayerWithProfile();
|
|
87000
|
-
const cloudinaryVideoPlayerLegacyConfig = config => {
|
|
87001
|
-
console.warn('Cloudinary.new() is deprecated and will be removed. Please use cloudinary.videoPlayer() instead.');
|
|
87002
|
-
return {
|
|
87003
|
-
videoPlayer: getVideoPlayer(config),
|
|
87004
|
-
videoPlayers: getVideoPlayers(config)
|
|
87005
|
-
};
|
|
87006
|
-
};
|
|
87007
|
-
const cloudinary = {
|
|
87008
|
-
...(window.cloudinary || {}),
|
|
87009
|
-
videoPlayer,
|
|
87010
|
-
videoPlayers,
|
|
87011
|
-
videoPlayerWithProfile,
|
|
87012
|
-
Cloudinary: {
|
|
87013
|
-
// Backwards compatibility with SDK v1
|
|
87014
|
-
new: cloudinaryVideoPlayerLegacyConfig
|
|
87015
|
-
}
|
|
87016
|
-
};
|
|
87017
|
-
window.cloudinary = cloudinary;
|
|
87018
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cloudinary);
|
|
87019
|
-
})();
|
|
87020
|
-
|
|
87050
|
+
/******/
|
|
87051
|
+
/******/ // startup
|
|
87052
|
+
/******/ // Load entry module and return exports
|
|
87053
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
87054
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["styles"], () => (__webpack_require__("./index.js")))
|
|
87055
|
+
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
87056
|
+
/******/
|
|
87021
87057
|
/******/ return __webpack_exports__;
|
|
87022
87058
|
/******/ })()
|
|
87023
87059
|
;
|