cloudinary-video-player 2.1.1 → 2.1.2-edge.0

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.
@@ -502,9 +502,6 @@
502
502
  .cld-video-player .vjs-text-track-display > div {
503
503
  margin: 3% !important;
504
504
  }
505
- .cld-video-player .vjs-text-track-display.cld-paced-text-tracks b {
506
- color: var(--color-accent);
507
- }
508
505
  .cld-video-player .vjs-text-track-cue {
509
506
  top: auto !important;
510
507
  bottom: 3.4rem !important;
@@ -9243,7 +9243,7 @@ class CloudinaryAnalytics {
9243
9243
  this.cloudinaryAnalytics.startManualTracking(metadata, {
9244
9244
  ...(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(this.analyticsOptions) ? this.analyticsOptions : {}),
9245
9245
  videoPlayerType: 'cloudinary video player',
9246
- videoPlayerVersion: "2.1.1"
9246
+ videoPlayerVersion: "2.1.2-edge.0"
9247
9247
  });
9248
9248
  } else if (this.currentVideMetadata.cloudName !== metadata.cloudName || this.currentVideMetadata.publicId !== metadata.publicId) {
9249
9249
  this.cloudinaryAnalytics.stopManualTracking();
@@ -9596,7 +9596,8 @@ class CloudinaryContext {
9596
9596
  refresh();
9597
9597
  }
9598
9598
  _this.player.trigger('cldsourcechanged', {
9599
- source: src
9599
+ source: src,
9600
+ sourceOptions: options
9600
9601
  });
9601
9602
  return _chainTarget;
9602
9603
  };
@@ -9613,7 +9614,7 @@ class CloudinaryContext {
9613
9614
  options.sourceTypes = options.sourceTypes || _this.sourceTypes();
9614
9615
  options.poster = options.poster || posterOptionsForCurrent();
9615
9616
  options.queryParams = Object.assign(options.queryParams || {}, options.usageReport ? {
9616
- _s: `vp-${"2.1.1"}`
9617
+ _s: `vp-${"2.1.2-edge.0"}`
9617
9618
  } : {});
9618
9619
  if (options.sourceTypes.indexOf('audio') > -1) {
9619
9620
  builtSrc = new _models_audio_source_audio_source__WEBPACK_IMPORTED_MODULE_7__["default"](publicId, options);
@@ -10877,7 +10878,7 @@ const contextMenuContent = player => {
10877
10878
  const isFullscreen = player.isFullscreen();
10878
10879
  const aboutMenuItem = {
10879
10880
  class: 'player-version',
10880
- label: 'Cloudinary Player v' + "2.1.1"
10881
+ label: 'Cloudinary Player v' + "2.1.2-edge.0"
10881
10882
  };
10882
10883
  if (!player.controls()) {
10883
10884
  return [aboutMenuItem];
@@ -13474,7 +13475,7 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_9__["default"].mixin(_
13474
13475
  const analyticsData = (0,_utils_get_analytics_player_options__WEBPACK_IMPORTED_MODULE_18__.getAnalyticsFromPlayerOptions)(options);
13475
13476
  const analyticsParams = new URLSearchParams(analyticsData).toString();
13476
13477
  const baseParams = new URLSearchParams({
13477
- vpVersion: "2.1.1",
13478
+ vpVersion: "2.1.2-edge.0",
13478
13479
  vpInstanceId: this.getVPInstanceId(),
13479
13480
  // #if (process.env.WEBPACK_BUILD_LIGHT)
13480
13481
  // vpLightBuild: true,
@@ -13801,8 +13802,15 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_9__["default"].mixin(_
13801
13802
  this.source(source, this.playerOptions);
13802
13803
  }
13803
13804
  }
13804
- _onSourceChange() {
13805
- this._sendInternalAnalytics();
13805
+ _onSourceChange(e, _ref5) {
13806
+ let {
13807
+ sourceOptions
13808
+ } = _ref5;
13809
+ this._sendInternalAnalytics({
13810
+ ...(sourceOptions ?? {
13811
+ source: sourceOptions
13812
+ })
13813
+ });
13806
13814
  // #if (!process.env.WEBPACK_BUILD_LIGHT)
13807
13815
  this._initQualitySelector();
13808
13816
  // #endif
@@ -13863,9 +13871,6 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_9__["default"].mixin(_
13863
13871
  }
13864
13872
  });
13865
13873
  }
13866
- this._sendInternalAnalytics({
13867
- source: options
13868
- });
13869
13874
  if (publicId instanceof _plugins_cloudinary_models_video_source_video_source__WEBPACK_IMPORTED_MODULE_13__["default"]) {
13870
13875
  return this.videojs.cloudinary.source(publicId, options);
13871
13876
  }
@@ -502,9 +502,6 @@
502
502
  .cld-video-player .vjs-text-track-display > div {
503
503
  margin: 3% !important;
504
504
  }
505
- .cld-video-player .vjs-text-track-display.cld-paced-text-tracks b {
506
- color: var(--color-accent);
507
- }
508
505
  .cld-video-player .vjs-text-track-cue {
509
506
  top: auto !important;
510
507
  bottom: 3.4rem !important;
@@ -1407,7 +1407,7 @@ class CloudinaryAnalytics {
1407
1407
  this.cloudinaryAnalytics.startManualTracking(metadata, {
1408
1408
  ...(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(this.analyticsOptions) ? this.analyticsOptions : {}),
1409
1409
  videoPlayerType: 'cloudinary video player',
1410
- videoPlayerVersion: "2.1.1"
1410
+ videoPlayerVersion: "2.1.2-edge.0"
1411
1411
  });
1412
1412
  } else if (this.currentVideMetadata.cloudName !== metadata.cloudName || this.currentVideMetadata.publicId !== metadata.publicId) {
1413
1413
  this.cloudinaryAnalytics.stopManualTracking();
@@ -1760,7 +1760,8 @@ class CloudinaryContext {
1760
1760
  refresh();
1761
1761
  }
1762
1762
  _this.player.trigger('cldsourcechanged', {
1763
- source: src
1763
+ source: src,
1764
+ sourceOptions: options
1764
1765
  });
1765
1766
  return _chainTarget;
1766
1767
  };
@@ -1777,7 +1778,7 @@ class CloudinaryContext {
1777
1778
  options.sourceTypes = options.sourceTypes || _this.sourceTypes();
1778
1779
  options.poster = options.poster || posterOptionsForCurrent();
1779
1780
  options.queryParams = Object.assign(options.queryParams || {}, options.usageReport ? {
1780
- _s: `vp-${"2.1.1"}`
1781
+ _s: `vp-${"2.1.2-edge.0"}`
1781
1782
  } : {});
1782
1783
  if (options.sourceTypes.indexOf('audio') > -1) {
1783
1784
  builtSrc = new _models_audio_source_audio_source__WEBPACK_IMPORTED_MODULE_7__["default"](publicId, options);
@@ -3041,7 +3042,7 @@ const contextMenuContent = player => {
3041
3042
  const isFullscreen = player.isFullscreen();
3042
3043
  const aboutMenuItem = {
3043
3044
  class: 'player-version',
3044
- label: 'Cloudinary Player v' + "2.1.1"
3045
+ label: 'Cloudinary Player v' + "2.1.2-edge.0"
3045
3046
  };
3046
3047
  if (!player.controls()) {
3047
3048
  return [aboutMenuItem];
@@ -5348,7 +5349,7 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_9__["default"].mixin(_
5348
5349
  const analyticsData = (0,_utils_get_analytics_player_options__WEBPACK_IMPORTED_MODULE_18__.getAnalyticsFromPlayerOptions)(options);
5349
5350
  const analyticsParams = new URLSearchParams(analyticsData).toString();
5350
5351
  const baseParams = new URLSearchParams({
5351
- vpVersion: "2.1.1",
5352
+ vpVersion: "2.1.2-edge.0",
5352
5353
  vpInstanceId: this.getVPInstanceId(),
5353
5354
  // #if (process.env.WEBPACK_BUILD_LIGHT)
5354
5355
  vpLightBuild: true,
@@ -5674,8 +5675,15 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_9__["default"].mixin(_
5674
5675
  this.source(source, this.playerOptions);
5675
5676
  }
5676
5677
  }
5677
- _onSourceChange() {
5678
- this._sendInternalAnalytics();
5678
+ _onSourceChange(e, _ref5) {
5679
+ let {
5680
+ sourceOptions
5681
+ } = _ref5;
5682
+ this._sendInternalAnalytics({
5683
+ ...(sourceOptions ?? {
5684
+ source: sourceOptions
5685
+ })
5686
+ });
5679
5687
  // #if (!process.env.WEBPACK_BUILD_LIGHT)
5680
5688
  // this._initQualitySelector();
5681
5689
  // #endif
@@ -5736,9 +5744,6 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_9__["default"].mixin(_
5736
5744
  }
5737
5745
  });
5738
5746
  }
5739
- this._sendInternalAnalytics({
5740
- source: options
5741
- });
5742
5747
  if (publicId instanceof _plugins_cloudinary_models_video_source_video_source__WEBPACK_IMPORTED_MODULE_13__["default"]) {
5743
5748
  return this.videojs.cloudinary.source(publicId, options);
5744
5749
  }