cloudinary-video-player 2.0.0-edge.6 → 2.0.0-edge.8

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-edge.6"
9483
+ videoPlayerVersion: "2.0.0-edge.8"
9484
9484
  });
9485
9485
  } else if (this.currentVideMetadata.cloudName !== metadata.cloudName || this.currentVideMetadata.publicId !== metadata.publicId) {
9486
9486
  this.cloudinaryAnalytics.stopManualTracking();
@@ -9643,7 +9643,8 @@ const setupCloudinaryMiddleware = () => {
9643
9643
  const {
9644
9644
  headers
9645
9645
  } = await fetch(srcObj.src, {
9646
- method: 'HEAD'
9646
+ method: 'HEAD',
9647
+ credentials: srcObj.withCredentials ? 'include' : 'omit'
9647
9648
  });
9648
9649
  return next(null, {
9649
9650
  src: srcObj.src,
@@ -9833,7 +9834,7 @@ class CloudinaryContext {
9833
9834
  options.sourceTypes = options.sourceTypes || _this.sourceTypes();
9834
9835
  options.poster = options.poster || posterOptionsForCurrent();
9835
9836
  options.queryParams = Object.assign(options.queryParams || {}, options.usageReport ? {
9836
- _s: "vp-".concat("2.0.0-edge.6")
9837
+ _s: "vp-".concat("2.0.0-edge.8")
9837
9838
  } : {});
9838
9839
  if (options.sourceTypes.indexOf('audio') > -1) {
9839
9840
  builtSrc = new _models_audio_source_audio_source__WEBPACK_IMPORTED_MODULE_7__["default"](publicId, options);
@@ -10894,7 +10895,7 @@ const contextMenuContent = player => {
10894
10895
  const isFullscreen = player.isFullscreen();
10895
10896
  const aboutMenuItem = {
10896
10897
  class: 'player-version',
10897
- label: 'Cloudinary Player v' + "2.0.0-edge.6"
10898
+ label: 'Cloudinary Player v' + "2.0.0-edge.8"
10898
10899
  };
10899
10900
  if (!player.controls()) {
10900
10901
  return [aboutMenuItem];
@@ -13255,7 +13256,7 @@ const isValidConfig = (config, validators) => {
13255
13256
  * @returns boolean - true is the configuration object is valid and false if it is not
13256
13257
  */
13257
13258
  const isValidPlayerConfig = async config => {
13258
- return __webpack_require__.e(/*! import() | validators */ "validators").then(__webpack_require__.bind(__webpack_require__, /*! ./validators */ "./validators/validators.js")).then(_ref => {
13259
+ return __webpack_require__.e(/*! import() | debug */ "debug").then(__webpack_require__.bind(__webpack_require__, /*! ./validators */ "./validators/validators.js")).then(_ref => {
13259
13260
  let {
13260
13261
  playerValidators
13261
13262
  } = _ref;
@@ -13269,7 +13270,7 @@ const isValidPlayerConfig = async config => {
13269
13270
  * @returns boolean - true is the configuration object is valid and false if it is not
13270
13271
  */
13271
13272
  const isValidSourceConfig = config => {
13272
- return __webpack_require__.e(/*! import() | validators */ "validators").then(__webpack_require__.bind(__webpack_require__, /*! ./validators */ "./validators/validators.js")).then(_ref2 => {
13273
+ return __webpack_require__.e(/*! import() | debug */ "debug").then(__webpack_require__.bind(__webpack_require__, /*! ./validators */ "./validators/validators.js")).then(_ref2 => {
13273
13274
  let {
13274
13275
  sourceValidators
13275
13276
  } = _ref2;
@@ -13526,7 +13527,7 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_8__["default"].mixin(_
13526
13527
  const analyticsData = (0,_utils_get_analytics_player_options__WEBPACK_IMPORTED_MODULE_17__.getAnalyticsFromPlayerOptions)(options);
13527
13528
  const analyticsParams = new URLSearchParams(analyticsData).toString();
13528
13529
  const baseParams = new URLSearchParams({
13529
- vpVersion: "2.0.0-edge.6",
13530
+ vpVersion: "2.0.0-edge.8",
13530
13531
  vpInstanceId: this.getVPInstanceId(),
13531
13532
  // #if (process.env.WEBPACK_BUILD_LIGHT)
13532
13533
  // vpLightBuild: true,
@@ -13920,6 +13921,9 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_8__["default"].mixin(_
13920
13921
  if (this.playerOptions.allowUsageReport) {
13921
13922
  options.usageReport = true;
13922
13923
  }
13924
+ if (this.playerOptions.withCredentials) {
13925
+ options.withCredentials = true;
13926
+ }
13923
13927
  clearTimeout(this.reTryId);
13924
13928
  this.nbCalls = 0;
13925
13929
  const maxTries = this.videojs.options_.maxTries || 3;
@@ -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-edge.6"
1268
+ videoPlayerVersion: "2.0.0-edge.8"
1269
1269
  });
1270
1270
  } else if (this.currentVideMetadata.cloudName !== metadata.cloudName || this.currentVideMetadata.publicId !== metadata.publicId) {
1271
1271
  this.cloudinaryAnalytics.stopManualTracking();
@@ -1428,7 +1428,8 @@ const setupCloudinaryMiddleware = () => {
1428
1428
  const {
1429
1429
  headers
1430
1430
  } = await fetch(srcObj.src, {
1431
- method: 'HEAD'
1431
+ method: 'HEAD',
1432
+ credentials: srcObj.withCredentials ? 'include' : 'omit'
1432
1433
  });
1433
1434
  return next(null, {
1434
1435
  src: srcObj.src,
@@ -1618,7 +1619,7 @@ class CloudinaryContext {
1618
1619
  options.sourceTypes = options.sourceTypes || _this.sourceTypes();
1619
1620
  options.poster = options.poster || posterOptionsForCurrent();
1620
1621
  options.queryParams = Object.assign(options.queryParams || {}, options.usageReport ? {
1621
- _s: "vp-".concat("2.0.0-edge.6")
1622
+ _s: "vp-".concat("2.0.0-edge.8")
1622
1623
  } : {});
1623
1624
  if (options.sourceTypes.indexOf('audio') > -1) {
1624
1625
  builtSrc = new _models_audio_source_audio_source__WEBPACK_IMPORTED_MODULE_7__["default"](publicId, options);
@@ -2679,7 +2680,7 @@ const contextMenuContent = player => {
2679
2680
  const isFullscreen = player.isFullscreen();
2680
2681
  const aboutMenuItem = {
2681
2682
  class: 'player-version',
2682
- label: 'Cloudinary Player v' + "2.0.0-edge.6"
2683
+ label: 'Cloudinary Player v' + "2.0.0-edge.8"
2683
2684
  };
2684
2685
  if (!player.controls()) {
2685
2686
  return [aboutMenuItem];
@@ -4751,7 +4752,7 @@ const isValidConfig = (config, validators) => {
4751
4752
  * @returns boolean - true is the configuration object is valid and false if it is not
4752
4753
  */
4753
4754
  const isValidPlayerConfig = async config => {
4754
- return __webpack_require__.e(/*! import() | validators */ "validators").then(__webpack_require__.bind(__webpack_require__, /*! ./validators */ "./validators/validators.js")).then(_ref => {
4755
+ return __webpack_require__.e(/*! import() | debug */ "debug").then(__webpack_require__.bind(__webpack_require__, /*! ./validators */ "./validators/validators.js")).then(_ref => {
4755
4756
  let {
4756
4757
  playerValidators
4757
4758
  } = _ref;
@@ -4765,7 +4766,7 @@ const isValidPlayerConfig = async config => {
4765
4766
  * @returns boolean - true is the configuration object is valid and false if it is not
4766
4767
  */
4767
4768
  const isValidSourceConfig = config => {
4768
- return __webpack_require__.e(/*! import() | validators */ "validators").then(__webpack_require__.bind(__webpack_require__, /*! ./validators */ "./validators/validators.js")).then(_ref2 => {
4769
+ return __webpack_require__.e(/*! import() | debug */ "debug").then(__webpack_require__.bind(__webpack_require__, /*! ./validators */ "./validators/validators.js")).then(_ref2 => {
4769
4770
  let {
4770
4771
  sourceValidators
4771
4772
  } = _ref2;
@@ -5021,7 +5022,7 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_8__["default"].mixin(_
5021
5022
  const analyticsData = (0,_utils_get_analytics_player_options__WEBPACK_IMPORTED_MODULE_17__.getAnalyticsFromPlayerOptions)(options);
5022
5023
  const analyticsParams = new URLSearchParams(analyticsData).toString();
5023
5024
  const baseParams = new URLSearchParams({
5024
- vpVersion: "2.0.0-edge.6",
5025
+ vpVersion: "2.0.0-edge.8",
5025
5026
  vpInstanceId: this.getVPInstanceId(),
5026
5027
  // #if (process.env.WEBPACK_BUILD_LIGHT)
5027
5028
  vpLightBuild: true,
@@ -5414,6 +5415,9 @@ class VideoPlayer extends _utils__WEBPACK_IMPORTED_MODULE_8__["default"].mixin(_
5414
5415
  if (this.playerOptions.allowUsageReport) {
5415
5416
  options.usageReport = true;
5416
5417
  }
5418
+ if (this.playerOptions.withCredentials) {
5419
+ options.withCredentials = true;
5420
+ }
5417
5421
  clearTimeout(this.reTryId);
5418
5422
  this.nbCalls = 0;
5419
5423
  const maxTries = this.videojs.options_.maxTries || 3;