cloudinary-video-player 2.1.1-edge.0 → 2.1.1-edge.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.
@@ -8195,31 +8195,6 @@ __webpack_require__.r(__webpack_exports__);
8195
8195
 
8196
8196
  /***/ }),
8197
8197
 
8198
- /***/ "./config/profiles/index.js":
8199
- /*!**********************************!*\
8200
- !*** ./config/profiles/index.js ***!
8201
- \**********************************/
8202
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8203
-
8204
- "use strict";
8205
- __webpack_require__.r(__webpack_exports__);
8206
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8207
- /* harmony export */ defaultProfiles: () => (/* binding */ defaultProfiles)
8208
- /* harmony export */ });
8209
- /* harmony import */ var _cldDefault_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cldDefault.json */ "./config/profiles/cldDefault.json");
8210
- /* harmony import */ var _cldLooping_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cldLooping.json */ "./config/profiles/cldLooping.json");
8211
- /* harmony import */ var _cldAdaptiveStream_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cldAdaptiveStream.json */ "./config/profiles/cldAdaptiveStream.json");
8212
-
8213
-
8214
-
8215
- const defaultProfiles = {
8216
- cldDefault: _cldDefault_json__WEBPACK_IMPORTED_MODULE_0__,
8217
- cldLooping: _cldLooping_json__WEBPACK_IMPORTED_MODULE_1__,
8218
- cldAdaptiveStream: _cldAdaptiveStream_json__WEBPACK_IMPORTED_MODULE_2__
8219
- };
8220
-
8221
- /***/ }),
8222
-
8223
8198
  /***/ "./extended-events.js":
8224
8199
  /*!****************************!*\
8225
8200
  !*** ./extended-events.js ***!
@@ -8594,16 +8569,35 @@ __webpack_require__.r(__webpack_exports__);
8594
8569
  /* harmony export */ getProfile: () => (/* binding */ getProfile)
8595
8570
  /* harmony export */ });
8596
8571
  /* harmony import */ var _video_player__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./video-player */ "./video-player.js");
8597
- /* harmony import */ var _config_profiles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./config/profiles */ "./config/profiles/index.js");
8572
+ /* harmony import */ var cloudinary_video_player_profiles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! cloudinary-video-player-profiles */ "../node_modules/cloudinary-video-player-profiles/dist/index.js");
8573
+ /* harmony import */ var cloudinary_video_player_profiles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(cloudinary_video_player_profiles__WEBPACK_IMPORTED_MODULE_1__);
8598
8574
  /* harmony import */ var _plugins_cloudinary_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./plugins/cloudinary/common */ "./plugins/cloudinary/common.js");
8599
8575
  /* harmony import */ var _cloudinary_url_gen_backwards_utils_unsigned_url_prefix__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @cloudinary/url-gen/backwards/utils/unsigned_url_prefix */ "../node_modules/@cloudinary/url-gen/backwards/utils/unsigned_url_prefix.js");
8600
8576
 
8601
8577
 
8602
8578
 
8603
8579
 
8580
+ const isDefaultProfile = profileName => !!cloudinary_video_player_profiles__WEBPACK_IMPORTED_MODULE_1__.defaultProfiles.find(_ref => {
8581
+ let {
8582
+ name
8583
+ } = _ref;
8584
+ return profileName === name;
8585
+ });
8586
+ const getDefaultProfileConfig = profileName => {
8587
+ const profile = cloudinary_video_player_profiles__WEBPACK_IMPORTED_MODULE_1__.defaultProfiles.find(_ref2 => {
8588
+ let {
8589
+ name
8590
+ } = _ref2;
8591
+ return profileName === name;
8592
+ });
8593
+ if (!profile) {
8594
+ throw new Error(`Default profile with name ${profileName} does not exist`);
8595
+ }
8596
+ return profile.config;
8597
+ };
8604
8598
  const getProfile = async (profile, initOptions) => {
8605
- if (Object.keys(_config_profiles__WEBPACK_IMPORTED_MODULE_1__.defaultProfiles).includes(profile)) {
8606
- return _config_profiles__WEBPACK_IMPORTED_MODULE_1__.defaultProfiles[profile];
8599
+ if (isDefaultProfile(profile)) {
8600
+ return getDefaultProfileConfig(profile);
8607
8601
  }
8608
8602
  const urlPrefix = (0,_cloudinary_url_gen_backwards_utils_unsigned_url_prefix__WEBPACK_IMPORTED_MODULE_3__.unsigned_url_prefix)(null, initOptions.cloudName ?? initOptions.cloud_name, initOptions.private_cdn, initOptions.cdn_subdomain, initOptions.secure_cdn_subdomain, initOptions.cname, initOptions.secure ?? true, initOptions.secure_distribution);
8609
8603
  const profileUrl = (0,_plugins_cloudinary_common__WEBPACK_IMPORTED_MODULE_2__.isRawUrl)(profile) ? profile : `${urlPrefix}/_applet_/video_service/video_player_profiles/${profile.replaceAll(' ', '+')}.json`;
@@ -8618,7 +8612,12 @@ const player = async (elem, initOptions, ready) => {
8618
8612
  } = initOptions;
8619
8613
  try {
8620
8614
  const profileOptions = profile ? await getProfile(profile, otherInitOptions) : {};
8621
- const options = Object.assign({}, profileOptions.playerOptions, otherInitOptions);
8615
+ const options = Object.assign({}, profileOptions.playerOptions, otherInitOptions, {
8616
+ _internalAnalyticsMetadata: {
8617
+ newPlayerMethod: true,
8618
+ profile: isDefaultProfile(profile) ? profile : !!profile
8619
+ }
8620
+ });
8622
8621
  const videoPlayer = new _video_player__WEBPACK_IMPORTED_MODULE_0__["default"](elem, options, ready);
8623
8622
  const nativeVideoPlayerSourceMethod = videoPlayer.source;
8624
8623
  videoPlayer.source = (id, options) => {
@@ -9244,7 +9243,7 @@ class CloudinaryAnalytics {
9244
9243
  this.cloudinaryAnalytics.startManualTracking(metadata, {
9245
9244
  ...(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(this.analyticsOptions) ? this.analyticsOptions : {}),
9246
9245
  videoPlayerType: 'cloudinary video player',
9247
- videoPlayerVersion: "2.1.1-edge.0"
9246
+ videoPlayerVersion: "2.1.1-edge.2"
9248
9247
  });
9249
9248
  } else if (this.currentVideMetadata.cloudName !== metadata.cloudName || this.currentVideMetadata.publicId !== metadata.publicId) {
9250
9249
  this.cloudinaryAnalytics.stopManualTracking();
@@ -9614,7 +9613,7 @@ class CloudinaryContext {
9614
9613
  options.sourceTypes = options.sourceTypes || _this.sourceTypes();
9615
9614
  options.poster = options.poster || posterOptionsForCurrent();
9616
9615
  options.queryParams = Object.assign(options.queryParams || {}, options.usageReport ? {
9617
- _s: `vp-${"2.1.1-edge.0"}`
9616
+ _s: `vp-${"2.1.1-edge.2"}`
9618
9617
  } : {});
9619
9618
  if (options.sourceTypes.indexOf('audio') > -1) {
9620
9619
  builtSrc = new _models_audio_source_audio_source__WEBPACK_IMPORTED_MODULE_7__["default"](publicId, options);
@@ -10878,7 +10877,7 @@ const contextMenuContent = player => {
10878
10877
  const isFullscreen = player.isFullscreen();
10879
10878
  const aboutMenuItem = {
10880
10879
  class: 'player-version',
10881
- label: 'Cloudinary Player v' + "2.1.1-edge.0"
10880
+ label: 'Cloudinary Player v' + "2.1.1-edge.2"
10882
10881
  };
10883
10882
  if (!player.controls()) {
10884
10883
  return [aboutMenuItem];
@@ -13301,7 +13300,7 @@ __webpack_require__.r(__webpack_exports__);
13301
13300
  /* harmony import */ var video_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(video_js__WEBPACK_IMPORTED_MODULE_0__);
13302
13301
 
13303
13302
  const CLOUDINARY_PARAMS = ['cloudinaryConfig', 'transformation', 'sourceTypes', 'sourceTransformation', 'posterOptions', 'autoShowRecommendations', 'fontFace', 'secure'];
13304
- const PLAYER_PARAMS = CLOUDINARY_PARAMS.concat(['debug', 'publicId', 'source', 'autoplayMode', 'playedEventPercents', 'playedEventTimes', 'analytics', 'cloudinaryAnalytics', 'allowUsageReport', 'fluid', 'ima', 'playlistWidget', 'hideContextMenu', 'colors', 'floatingWhenNotVisible', 'ads', 'showJumpControls', 'chaptersButton', 'pictureInPictureToggle', 'textTracks', 'qualitySelector', 'fetchErrorUsingGet', 'withCredentials', 'seekThumbnails', 'aiHighlightsGraph', 'chapters', 'queryParams']);
13303
+ const PLAYER_PARAMS = CLOUDINARY_PARAMS.concat(['_internalAnalyticsMetadata', 'debug', 'publicId', 'source', 'autoplayMode', 'playedEventPercents', 'playedEventTimes', 'analytics', 'cloudinaryAnalytics', 'allowUsageReport', 'fluid', 'ima', 'playlistWidget', 'hideContextMenu', 'colors', 'floatingWhenNotVisible', 'ads', 'showJumpControls', 'chaptersButton', 'pictureInPictureToggle', 'textTracks', 'qualitySelector', 'fetchErrorUsingGet', 'withCredentials', 'seekThumbnails', 'aiHighlightsGraph', 'chapters', 'queryParams']);
13305
13304
  const CLOUDINARY_CONFIG_PARAM = ['cloud_name', 'secure', 'private_cdn', 'secure_distribution', 'cdn_subdomain', 'secure_cdn_subdomain', 'cname', 'shorten', 'sign_url', 'api_secret', 'url_suffix', 'use_root_path', 'auth_token'];
13306
13305
  const DEFAULT_HLS_OPTIONS = {
13307
13306
  html5: {
@@ -13471,15 +13470,17 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_9__["default"].mixin(_
13471
13470
  return;
13472
13471
  }
13473
13472
  try {
13473
+ const internalAnalyticsMetadata = options._internalAnalyticsMetadata ?? {};
13474
13474
  const analyticsData = (0,_utils_get_analytics_player_options__WEBPACK_IMPORTED_MODULE_18__.getAnalyticsFromPlayerOptions)(options);
13475
13475
  const analyticsParams = new URLSearchParams(analyticsData).toString();
13476
13476
  const baseParams = new URLSearchParams({
13477
- vpVersion: "2.1.1-edge.0",
13477
+ vpVersion: "2.1.1-edge.2",
13478
13478
  vpInstanceId: this.getVPInstanceId(),
13479
13479
  // #if (process.env.WEBPACK_BUILD_LIGHT)
13480
13480
  // vpLightBuild: true,
13481
13481
  // #endif
13482
- cloudName: options.cloudinary.cloudinaryConfig.cloud_name
13482
+ cloudName: options.cloudinary.cloudinaryConfig.cloud_name,
13483
+ ...internalAnalyticsMetadata
13483
13484
  }).toString();
13484
13485
  fetch(`${INTERNAL_ANALYTICS_URL}/video_player_source?${analyticsParams}&${baseParams}`);
13485
13486
  } catch (e) {
@@ -83836,6 +83837,17 @@ module.exports = _extends, module.exports.__esModule = true, module.exports["def
83836
83837
 
83837
83838
  /***/ }),
83838
83839
 
83840
+ /***/ "../node_modules/cloudinary-video-player-profiles/dist/index.js":
83841
+ /*!**********************************************************************!*\
83842
+ !*** ../node_modules/cloudinary-video-player-profiles/dist/index.js ***!
83843
+ \**********************************************************************/
83844
+ /***/ ((__unused_webpack_module, exports) => {
83845
+
83846
+ var e={607:function(e,o,t){var l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(o,"__esModule",{value:!0}),o.defaultProfiles=o.cldAdaptiveStreamProfile=o.cldLoopingProfile=o.cldDefaultProfile=void 0;const r=l(t(704)),i=l(t(83)),a=l(t(832));o.cldDefaultProfile={name:"cld-default",isDefault:!0,config:r.default},o.cldLoopingProfile={name:"cld-looping",isDefault:!0,config:i.default},o.cldAdaptiveStreamProfile={name:"cld-adaptive-stream",isDefault:!0,config:a.default},o.defaultProfiles=[o.cldDefaultProfile,o.cldLoopingProfile,o.cldAdaptiveStreamProfile]},832:e=>{e.exports=JSON.parse('{"playerOptions":{"fluid":true,"controls":true,"controlBar":{"fullscreenToggle":false},"showJumpControls":true,"hideContextMenu":false,"floatingWhenNotVisible":"none"},"sourceOptions":{"chapters":true,"sourceTypes":["hls"],"transformation":[{"effect":["volume:auto"]}]}}')},704:e=>{e.exports=JSON.parse('{"playerOptions":{},"sourceOptions":{}}')},83:e=>{e.exports=JSON.parse('{"playerOptions":{"fluid":true,"controls":false,"muted":true,"floatingWhenNotVisible":"none","hideContextMenu":false,"autoplay":true,"loop":true},"sourceOptions":{}}')}},o={},t=function t(l){var r=o[l];if(void 0!==r)return r.exports;var i=o[l]={exports:{}};return e[l].call(i.exports,i,i.exports,t),i.exports}(607),l=exports;for(var r in t)l[r]=t[r];t.__esModule&&Object.defineProperty(l,"__esModule",{value:!0});
83847
+ //# sourceMappingURL=index.js.map
83848
+
83849
+ /***/ }),
83850
+
83839
83851
  /***/ "../node_modules/@babel/runtime/helpers/esm/extends.js":
83840
83852
  /*!*************************************************************!*\
83841
83853
  !*** ../node_modules/@babel/runtime/helpers/esm/extends.js ***!
@@ -89101,39 +89113,6 @@ function isString(value) {
89101
89113
 
89102
89114
 
89103
89115
 
89104
- /***/ }),
89105
-
89106
- /***/ "./config/profiles/cldAdaptiveStream.json":
89107
- /*!************************************************!*\
89108
- !*** ./config/profiles/cldAdaptiveStream.json ***!
89109
- \************************************************/
89110
- /***/ ((module) => {
89111
-
89112
- "use strict";
89113
- module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"controls":true,"controlBar":{"fullscreenToggle":false},"showJumpControls":true,"hideContextMenu":false,"floatingWhenNotVisible":"none"},"sourceOptions":{"chapters":true,"sourceTypes":["hls"],"transformation":[{"effect":["volume:auto"]}]}}');
89114
-
89115
- /***/ }),
89116
-
89117
- /***/ "./config/profiles/cldDefault.json":
89118
- /*!*****************************************!*\
89119
- !*** ./config/profiles/cldDefault.json ***!
89120
- \*****************************************/
89121
- /***/ ((module) => {
89122
-
89123
- "use strict";
89124
- module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{},"sourceOptions":{}}');
89125
-
89126
- /***/ }),
89127
-
89128
- /***/ "./config/profiles/cldLooping.json":
89129
- /*!*****************************************!*\
89130
- !*** ./config/profiles/cldLooping.json ***!
89131
- \*****************************************/
89132
- /***/ ((module) => {
89133
-
89134
- "use strict";
89135
- module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"controls":false,"muted":true,"floatingWhenNotVisible":"none","hideContextMenu":false,"autoplay":true,"loop":true},"sourceOptions":{}}');
89136
-
89137
89116
  /***/ })
89138
89117
 
89139
89118
  /******/ });
@@ -359,31 +359,6 @@ __webpack_require__.r(__webpack_exports__);
359
359
 
360
360
  /***/ }),
361
361
 
362
- /***/ "./config/profiles/index.js":
363
- /*!**********************************!*\
364
- !*** ./config/profiles/index.js ***!
365
- \**********************************/
366
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
367
-
368
- "use strict";
369
- __webpack_require__.r(__webpack_exports__);
370
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
371
- /* harmony export */ defaultProfiles: () => (/* binding */ defaultProfiles)
372
- /* harmony export */ });
373
- /* harmony import */ var _cldDefault_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cldDefault.json */ "./config/profiles/cldDefault.json");
374
- /* harmony import */ var _cldLooping_json__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cldLooping.json */ "./config/profiles/cldLooping.json");
375
- /* harmony import */ var _cldAdaptiveStream_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cldAdaptiveStream.json */ "./config/profiles/cldAdaptiveStream.json");
376
-
377
-
378
-
379
- const defaultProfiles = {
380
- cldDefault: _cldDefault_json__WEBPACK_IMPORTED_MODULE_0__,
381
- cldLooping: _cldLooping_json__WEBPACK_IMPORTED_MODULE_1__,
382
- cldAdaptiveStream: _cldAdaptiveStream_json__WEBPACK_IMPORTED_MODULE_2__
383
- };
384
-
385
- /***/ }),
386
-
387
362
  /***/ "./extended-events.js":
388
363
  /*!****************************!*\
389
364
  !*** ./extended-events.js ***!
@@ -758,16 +733,35 @@ __webpack_require__.r(__webpack_exports__);
758
733
  /* harmony export */ getProfile: () => (/* binding */ getProfile)
759
734
  /* harmony export */ });
760
735
  /* harmony import */ var _video_player__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./video-player */ "./video-player.js");
761
- /* harmony import */ var _config_profiles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./config/profiles */ "./config/profiles/index.js");
736
+ /* harmony import */ var cloudinary_video_player_profiles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! cloudinary-video-player-profiles */ "../node_modules/cloudinary-video-player-profiles/dist/index.js");
737
+ /* harmony import */ var cloudinary_video_player_profiles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(cloudinary_video_player_profiles__WEBPACK_IMPORTED_MODULE_1__);
762
738
  /* harmony import */ var _plugins_cloudinary_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./plugins/cloudinary/common */ "./plugins/cloudinary/common.js");
763
739
  /* harmony import */ var _cloudinary_url_gen_backwards_utils_unsigned_url_prefix__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @cloudinary/url-gen/backwards/utils/unsigned_url_prefix */ "../node_modules/@cloudinary/url-gen/backwards/utils/unsigned_url_prefix.js");
764
740
 
765
741
 
766
742
 
767
743
 
744
+ const isDefaultProfile = profileName => !!cloudinary_video_player_profiles__WEBPACK_IMPORTED_MODULE_1__.defaultProfiles.find(_ref => {
745
+ let {
746
+ name
747
+ } = _ref;
748
+ return profileName === name;
749
+ });
750
+ const getDefaultProfileConfig = profileName => {
751
+ const profile = cloudinary_video_player_profiles__WEBPACK_IMPORTED_MODULE_1__.defaultProfiles.find(_ref2 => {
752
+ let {
753
+ name
754
+ } = _ref2;
755
+ return profileName === name;
756
+ });
757
+ if (!profile) {
758
+ throw new Error(`Default profile with name ${profileName} does not exist`);
759
+ }
760
+ return profile.config;
761
+ };
768
762
  const getProfile = async (profile, initOptions) => {
769
- if (Object.keys(_config_profiles__WEBPACK_IMPORTED_MODULE_1__.defaultProfiles).includes(profile)) {
770
- return _config_profiles__WEBPACK_IMPORTED_MODULE_1__.defaultProfiles[profile];
763
+ if (isDefaultProfile(profile)) {
764
+ return getDefaultProfileConfig(profile);
771
765
  }
772
766
  const urlPrefix = (0,_cloudinary_url_gen_backwards_utils_unsigned_url_prefix__WEBPACK_IMPORTED_MODULE_3__.unsigned_url_prefix)(null, initOptions.cloudName ?? initOptions.cloud_name, initOptions.private_cdn, initOptions.cdn_subdomain, initOptions.secure_cdn_subdomain, initOptions.cname, initOptions.secure ?? true, initOptions.secure_distribution);
773
767
  const profileUrl = (0,_plugins_cloudinary_common__WEBPACK_IMPORTED_MODULE_2__.isRawUrl)(profile) ? profile : `${urlPrefix}/_applet_/video_service/video_player_profiles/${profile.replaceAll(' ', '+')}.json`;
@@ -782,7 +776,12 @@ const player = async (elem, initOptions, ready) => {
782
776
  } = initOptions;
783
777
  try {
784
778
  const profileOptions = profile ? await getProfile(profile, otherInitOptions) : {};
785
- const options = Object.assign({}, profileOptions.playerOptions, otherInitOptions);
779
+ const options = Object.assign({}, profileOptions.playerOptions, otherInitOptions, {
780
+ _internalAnalyticsMetadata: {
781
+ newPlayerMethod: true,
782
+ profile: isDefaultProfile(profile) ? profile : !!profile
783
+ }
784
+ });
786
785
  const videoPlayer = new _video_player__WEBPACK_IMPORTED_MODULE_0__["default"](elem, options, ready);
787
786
  const nativeVideoPlayerSourceMethod = videoPlayer.source;
788
787
  videoPlayer.source = (id, options) => {
@@ -1408,7 +1407,7 @@ class CloudinaryAnalytics {
1408
1407
  this.cloudinaryAnalytics.startManualTracking(metadata, {
1409
1408
  ...(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(this.analyticsOptions) ? this.analyticsOptions : {}),
1410
1409
  videoPlayerType: 'cloudinary video player',
1411
- videoPlayerVersion: "2.1.1-edge.0"
1410
+ videoPlayerVersion: "2.1.1-edge.2"
1412
1411
  });
1413
1412
  } else if (this.currentVideMetadata.cloudName !== metadata.cloudName || this.currentVideMetadata.publicId !== metadata.publicId) {
1414
1413
  this.cloudinaryAnalytics.stopManualTracking();
@@ -1778,7 +1777,7 @@ class CloudinaryContext {
1778
1777
  options.sourceTypes = options.sourceTypes || _this.sourceTypes();
1779
1778
  options.poster = options.poster || posterOptionsForCurrent();
1780
1779
  options.queryParams = Object.assign(options.queryParams || {}, options.usageReport ? {
1781
- _s: `vp-${"2.1.1-edge.0"}`
1780
+ _s: `vp-${"2.1.1-edge.2"}`
1782
1781
  } : {});
1783
1782
  if (options.sourceTypes.indexOf('audio') > -1) {
1784
1783
  builtSrc = new _models_audio_source_audio_source__WEBPACK_IMPORTED_MODULE_7__["default"](publicId, options);
@@ -3042,7 +3041,7 @@ const contextMenuContent = player => {
3042
3041
  const isFullscreen = player.isFullscreen();
3043
3042
  const aboutMenuItem = {
3044
3043
  class: 'player-version',
3045
- label: 'Cloudinary Player v' + "2.1.1-edge.0"
3044
+ label: 'Cloudinary Player v' + "2.1.1-edge.2"
3046
3045
  };
3047
3046
  if (!player.controls()) {
3048
3047
  return [aboutMenuItem];
@@ -5176,7 +5175,7 @@ __webpack_require__.r(__webpack_exports__);
5176
5175
  /* harmony import */ var video_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(video_js__WEBPACK_IMPORTED_MODULE_0__);
5177
5176
 
5178
5177
  const CLOUDINARY_PARAMS = ['cloudinaryConfig', 'transformation', 'sourceTypes', 'sourceTransformation', 'posterOptions', 'autoShowRecommendations', 'fontFace', 'secure'];
5179
- const PLAYER_PARAMS = CLOUDINARY_PARAMS.concat(['debug', 'publicId', 'source', 'autoplayMode', 'playedEventPercents', 'playedEventTimes', 'analytics', 'cloudinaryAnalytics', 'allowUsageReport', 'fluid', 'ima', 'playlistWidget', 'hideContextMenu', 'colors', 'floatingWhenNotVisible', 'ads', 'showJumpControls', 'chaptersButton', 'pictureInPictureToggle', 'textTracks', 'qualitySelector', 'fetchErrorUsingGet', 'withCredentials', 'seekThumbnails', 'aiHighlightsGraph', 'chapters', 'queryParams']);
5178
+ const PLAYER_PARAMS = CLOUDINARY_PARAMS.concat(['_internalAnalyticsMetadata', 'debug', 'publicId', 'source', 'autoplayMode', 'playedEventPercents', 'playedEventTimes', 'analytics', 'cloudinaryAnalytics', 'allowUsageReport', 'fluid', 'ima', 'playlistWidget', 'hideContextMenu', 'colors', 'floatingWhenNotVisible', 'ads', 'showJumpControls', 'chaptersButton', 'pictureInPictureToggle', 'textTracks', 'qualitySelector', 'fetchErrorUsingGet', 'withCredentials', 'seekThumbnails', 'aiHighlightsGraph', 'chapters', 'queryParams']);
5180
5179
  const CLOUDINARY_CONFIG_PARAM = ['cloud_name', 'secure', 'private_cdn', 'secure_distribution', 'cdn_subdomain', 'secure_cdn_subdomain', 'cname', 'shorten', 'sign_url', 'api_secret', 'url_suffix', 'use_root_path', 'auth_token'];
5181
5180
  const DEFAULT_HLS_OPTIONS = {
5182
5181
  html5: {
@@ -5345,15 +5344,17 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_9__["default"].mixin(_
5345
5344
  return;
5346
5345
  }
5347
5346
  try {
5347
+ const internalAnalyticsMetadata = options._internalAnalyticsMetadata ?? {};
5348
5348
  const analyticsData = (0,_utils_get_analytics_player_options__WEBPACK_IMPORTED_MODULE_18__.getAnalyticsFromPlayerOptions)(options);
5349
5349
  const analyticsParams = new URLSearchParams(analyticsData).toString();
5350
5350
  const baseParams = new URLSearchParams({
5351
- vpVersion: "2.1.1-edge.0",
5351
+ vpVersion: "2.1.1-edge.2",
5352
5352
  vpInstanceId: this.getVPInstanceId(),
5353
5353
  // #if (process.env.WEBPACK_BUILD_LIGHT)
5354
5354
  vpLightBuild: true,
5355
5355
  // #endif
5356
- cloudName: options.cloudinary.cloudinaryConfig.cloud_name
5356
+ cloudName: options.cloudinary.cloudinaryConfig.cloud_name,
5357
+ ...internalAnalyticsMetadata
5357
5358
  }).toString();
5358
5359
  fetch(`${INTERNAL_ANALYTICS_URL}/video_player_source?${analyticsParams}&${baseParams}`);
5359
5360
  } catch (e) {
@@ -43445,6 +43446,17 @@ g,0<d.length&&(d=za[d[0]])&&(a.c[e]=d))}a.c[e]||(d=za[e])&&(a.c[e]=d);for(d=0;d<
43445
43446
  __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)):0;}());
43446
43447
 
43447
43448
 
43449
+ /***/ }),
43450
+
43451
+ /***/ "../node_modules/cloudinary-video-player-profiles/dist/index.js":
43452
+ /*!**********************************************************************!*\
43453
+ !*** ../node_modules/cloudinary-video-player-profiles/dist/index.js ***!
43454
+ \**********************************************************************/
43455
+ /***/ ((__unused_webpack_module, exports) => {
43456
+
43457
+ var e={607:function(e,o,t){var l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(o,"__esModule",{value:!0}),o.defaultProfiles=o.cldAdaptiveStreamProfile=o.cldLoopingProfile=o.cldDefaultProfile=void 0;const r=l(t(704)),i=l(t(83)),a=l(t(832));o.cldDefaultProfile={name:"cld-default",isDefault:!0,config:r.default},o.cldLoopingProfile={name:"cld-looping",isDefault:!0,config:i.default},o.cldAdaptiveStreamProfile={name:"cld-adaptive-stream",isDefault:!0,config:a.default},o.defaultProfiles=[o.cldDefaultProfile,o.cldLoopingProfile,o.cldAdaptiveStreamProfile]},832:e=>{e.exports=JSON.parse('{"playerOptions":{"fluid":true,"controls":true,"controlBar":{"fullscreenToggle":false},"showJumpControls":true,"hideContextMenu":false,"floatingWhenNotVisible":"none"},"sourceOptions":{"chapters":true,"sourceTypes":["hls"],"transformation":[{"effect":["volume:auto"]}]}}')},704:e=>{e.exports=JSON.parse('{"playerOptions":{},"sourceOptions":{}}')},83:e=>{e.exports=JSON.parse('{"playerOptions":{"fluid":true,"controls":false,"muted":true,"floatingWhenNotVisible":"none","hideContextMenu":false,"autoplay":true,"loop":true},"sourceOptions":{}}')}},o={},t=function t(l){var r=o[l];if(void 0!==r)return r.exports;var i=o[l]={exports:{}};return e[l].call(i.exports,i,i.exports,t),i.exports}(607),l=exports;for(var r in t)l[r]=t[r];t.__esModule&&Object.defineProperty(l,"__esModule",{value:!0});
43458
+ //# sourceMappingURL=index.js.map
43459
+
43448
43460
  /***/ }),
43449
43461
 
43450
43462
  /***/ "../node_modules/@cloudinary/url-gen/backwards/condition.js":
@@ -48684,39 +48696,6 @@ function isString(value) {
48684
48696
 
48685
48697
 
48686
48698
 
48687
- /***/ }),
48688
-
48689
- /***/ "./config/profiles/cldAdaptiveStream.json":
48690
- /*!************************************************!*\
48691
- !*** ./config/profiles/cldAdaptiveStream.json ***!
48692
- \************************************************/
48693
- /***/ ((module) => {
48694
-
48695
- "use strict";
48696
- module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"controls":true,"controlBar":{"fullscreenToggle":false},"showJumpControls":true,"hideContextMenu":false,"floatingWhenNotVisible":"none"},"sourceOptions":{"chapters":true,"sourceTypes":["hls"],"transformation":[{"effect":["volume:auto"]}]}}');
48697
-
48698
- /***/ }),
48699
-
48700
- /***/ "./config/profiles/cldDefault.json":
48701
- /*!*****************************************!*\
48702
- !*** ./config/profiles/cldDefault.json ***!
48703
- \*****************************************/
48704
- /***/ ((module) => {
48705
-
48706
- "use strict";
48707
- module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{},"sourceOptions":{}}');
48708
-
48709
- /***/ }),
48710
-
48711
- /***/ "./config/profiles/cldLooping.json":
48712
- /*!*****************************************!*\
48713
- !*** ./config/profiles/cldLooping.json ***!
48714
- \*****************************************/
48715
- /***/ ((module) => {
48716
-
48717
- "use strict";
48718
- module.exports = /*#__PURE__*/JSON.parse('{"playerOptions":{"fluid":true,"controls":false,"muted":true,"floatingWhenNotVisible":"none","hideContextMenu":false,"autoplay":true,"loop":true},"sourceOptions":{}}');
48719
-
48720
48699
  /***/ })
48721
48700
 
48722
48701
  /******/ });