cloudinary-video-player 2.0.0 → 2.0.1

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.
@@ -9480,7 +9480,7 @@ class CloudinaryAnalytics {
9480
9480
  this.currentVideMetadata = metadata;
9481
9481
  this.cloudinaryAnalytics.startManualTracking(metadata, {
9482
9482
  videoPlayerType: 'cloudinary video player',
9483
- videoPlayerVersion: "2.0.0"
9483
+ videoPlayerVersion: "2.0.1"
9484
9484
  });
9485
9485
  } else if (this.currentVideMetadata.cloudName !== metadata.cloudName || this.currentVideMetadata.publicId !== metadata.publicId) {
9486
9486
  this.cloudinaryAnalytics.stopManualTracking();
@@ -9834,7 +9834,7 @@ class CloudinaryContext {
9834
9834
  options.sourceTypes = options.sourceTypes || _this.sourceTypes();
9835
9835
  options.poster = options.poster || posterOptionsForCurrent();
9836
9836
  options.queryParams = Object.assign(options.queryParams || {}, options.usageReport ? {
9837
- _s: "vp-".concat("2.0.0")
9837
+ _s: "vp-".concat("2.0.1")
9838
9838
  } : {});
9839
9839
  if (options.sourceTypes.indexOf('audio') > -1) {
9840
9840
  builtSrc = new _models_audio_source_audio_source__WEBPACK_IMPORTED_MODULE_7__["default"](publicId, options);
@@ -10895,7 +10895,7 @@ const contextMenuContent = player => {
10895
10895
  const isFullscreen = player.isFullscreen();
10896
10896
  const aboutMenuItem = {
10897
10897
  class: 'player-version',
10898
- label: 'Cloudinary Player v' + "2.0.0"
10898
+ label: 'Cloudinary Player v' + "2.0.1"
10899
10899
  };
10900
10900
  if (!player.controls()) {
10901
10901
  return [aboutMenuItem];
@@ -13528,7 +13528,7 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_8__["default"].mixin(_
13528
13528
  const analyticsData = (0,_utils_get_analytics_player_options__WEBPACK_IMPORTED_MODULE_17__.getAnalyticsFromPlayerOptions)(options);
13529
13529
  const analyticsParams = new URLSearchParams(analyticsData).toString();
13530
13530
  const baseParams = new URLSearchParams({
13531
- vpVersion: "2.0.0",
13531
+ vpVersion: "2.0.1",
13532
13532
  vpInstanceId: this.getVPInstanceId(),
13533
13533
  // #if (process.env.WEBPACK_BUILD_LIGHT)
13534
13534
  // vpLightBuild: true,
@@ -87074,11 +87074,22 @@ const getVideoPlayerWithProfile = config => (id, playerOptions, ready) => (0,_vi
87074
87074
  const videoPlayer = getVideoPlayer();
87075
87075
  const videoPlayers = getVideoPlayers();
87076
87076
  const videoPlayerWithProfile = getVideoPlayerWithProfile();
87077
+ const cloudinaryVideoPlayerLegacyConfig = config => {
87078
+ console.warn('Cloudinary.new() is deprecated and will be removed. Please use cloudinary.videoPlayer() instead.');
87079
+ return {
87080
+ videoPlayer: getVideoPlayer(config),
87081
+ videoPlayers: getVideoPlayers(config)
87082
+ };
87083
+ };
87077
87084
  const cloudinary = {
87078
87085
  ...(window.cloudinary || {}),
87079
87086
  videoPlayer,
87080
87087
  videoPlayers,
87081
- videoPlayerWithProfile
87088
+ videoPlayerWithProfile,
87089
+ Cloudinary: {
87090
+ // Backwards compatibility with SDK v1
87091
+ new: cloudinaryVideoPlayerLegacyConfig
87092
+ }
87082
87093
  };
87083
87094
  window.cloudinary = cloudinary;
87084
87095
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cloudinary);
@@ -1265,7 +1265,7 @@ class CloudinaryAnalytics {
1265
1265
  this.currentVideMetadata = metadata;
1266
1266
  this.cloudinaryAnalytics.startManualTracking(metadata, {
1267
1267
  videoPlayerType: 'cloudinary video player',
1268
- videoPlayerVersion: "2.0.0"
1268
+ videoPlayerVersion: "2.0.1"
1269
1269
  });
1270
1270
  } else if (this.currentVideMetadata.cloudName !== metadata.cloudName || this.currentVideMetadata.publicId !== metadata.publicId) {
1271
1271
  this.cloudinaryAnalytics.stopManualTracking();
@@ -1619,7 +1619,7 @@ class CloudinaryContext {
1619
1619
  options.sourceTypes = options.sourceTypes || _this.sourceTypes();
1620
1620
  options.poster = options.poster || posterOptionsForCurrent();
1621
1621
  options.queryParams = Object.assign(options.queryParams || {}, options.usageReport ? {
1622
- _s: "vp-".concat("2.0.0")
1622
+ _s: "vp-".concat("2.0.1")
1623
1623
  } : {});
1624
1624
  if (options.sourceTypes.indexOf('audio') > -1) {
1625
1625
  builtSrc = new _models_audio_source_audio_source__WEBPACK_IMPORTED_MODULE_7__["default"](publicId, options);
@@ -2680,7 +2680,7 @@ const contextMenuContent = player => {
2680
2680
  const isFullscreen = player.isFullscreen();
2681
2681
  const aboutMenuItem = {
2682
2682
  class: 'player-version',
2683
- label: 'Cloudinary Player v' + "2.0.0"
2683
+ label: 'Cloudinary Player v' + "2.0.1"
2684
2684
  };
2685
2685
  if (!player.controls()) {
2686
2686
  return [aboutMenuItem];
@@ -5023,7 +5023,7 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_8__["default"].mixin(_
5023
5023
  const analyticsData = (0,_utils_get_analytics_player_options__WEBPACK_IMPORTED_MODULE_17__.getAnalyticsFromPlayerOptions)(options);
5024
5024
  const analyticsParams = new URLSearchParams(analyticsData).toString();
5025
5025
  const baseParams = new URLSearchParams({
5026
- vpVersion: "2.0.0",
5026
+ vpVersion: "2.0.1",
5027
5027
  vpInstanceId: this.getVPInstanceId(),
5028
5028
  // #if (process.env.WEBPACK_BUILD_LIGHT)
5029
5029
  vpLightBuild: true,
@@ -47436,11 +47436,22 @@ const getVideoPlayerWithProfile = config => (id, playerOptions, ready) => (0,_vi
47436
47436
  const videoPlayer = getVideoPlayer();
47437
47437
  const videoPlayers = getVideoPlayers();
47438
47438
  const videoPlayerWithProfile = getVideoPlayerWithProfile();
47439
+ const cloudinaryVideoPlayerLegacyConfig = config => {
47440
+ console.warn('Cloudinary.new() is deprecated and will be removed. Please use cloudinary.videoPlayer() instead.');
47441
+ return {
47442
+ videoPlayer: getVideoPlayer(config),
47443
+ videoPlayers: getVideoPlayers(config)
47444
+ };
47445
+ };
47439
47446
  const cloudinary = {
47440
47447
  ...(window.cloudinary || {}),
47441
47448
  videoPlayer,
47442
47449
  videoPlayers,
47443
- videoPlayerWithProfile
47450
+ videoPlayerWithProfile,
47451
+ Cloudinary: {
47452
+ // Backwards compatibility with SDK v1
47453
+ new: cloudinaryVideoPlayerLegacyConfig
47454
+ }
47444
47455
  };
47445
47456
  window.cloudinary = cloudinary;
47446
47457
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cloudinary);