cloudinary-video-player 4.0.1 → 4.0.2-edge.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.
Files changed (52) hide show
  1. package/dist/149.min.js +3 -3
  2. package/dist/309.min.js +2 -2
  3. package/dist/689.min.js +2 -2
  4. package/dist/801.min.js +3 -3
  5. package/dist/adaptive-streaming.js +2 -2
  6. package/dist/adaptive-streaming.min.js +2 -2
  7. package/dist/chapters.js +2 -2
  8. package/dist/chapters.min.js +2 -2
  9. package/dist/cld-player-core.js +8 -8
  10. package/dist/cld-player-core.min.js +3 -3
  11. package/dist/cld-poster-url.js +2 -2
  12. package/dist/cld-poster-url.min.js +2 -2
  13. package/dist/cld-video-player.css +2 -2
  14. package/dist/cld-video-player.js +8 -8
  15. package/dist/cld-video-player.light.js +8 -8
  16. package/dist/cld-video-player.light.min.js +3 -3
  17. package/dist/cld-video-player.min.css +2 -2
  18. package/dist/cld-video-player.min.js +3 -3
  19. package/dist/colors.js +2 -2
  20. package/dist/colors.min.js +2 -2
  21. package/dist/dash.js +2 -2
  22. package/dist/dash.min.js +2 -2
  23. package/dist/debug.js +2 -2
  24. package/dist/debug.min.js +2 -2
  25. package/dist/ima.js +2 -2
  26. package/dist/ima.min.js +2 -2
  27. package/dist/interaction-areas.js +2 -2
  28. package/dist/interaction-areas.min.js +2 -2
  29. package/dist/node_modules_lodash_throttle_js.js +2 -2
  30. package/dist/player-full.js +8 -8
  31. package/dist/player-full.min.js +3 -3
  32. package/dist/player.css +2 -2
  33. package/dist/player.js +2 -2
  34. package/dist/player.min.css +2 -2
  35. package/dist/player.min.js +2 -2
  36. package/dist/playlist.js +2 -2
  37. package/dist/playlist.min.js +2 -2
  38. package/dist/recommendations-overlay.js +2 -2
  39. package/dist/recommendations-overlay.min.js +2 -2
  40. package/dist/share.js +2 -2
  41. package/dist/share.min.js +2 -2
  42. package/dist/shoppable.js +2 -2
  43. package/dist/shoppable.min.js +2 -2
  44. package/dist/utils_fetch-config_js.js +2 -2
  45. package/dist/utils_schedule_js.js +2 -2
  46. package/dist/visual-search.js +2 -2
  47. package/dist/visual-search.min.js +2 -2
  48. package/lib/cld-video-player.min.css +2 -2
  49. package/lib/index2.js +1 -1
  50. package/lib/player.min.css +2 -2
  51. package/lib/video-player.js +10 -12
  52. package/package.json +1 -1
@@ -561,7 +561,7 @@ class TitleBar extends Component {
561
561
  const metadataUrl = appendQueryParams(`${urlPrefix}/_applet_/video_service/video_metadata/${deliveryType}/${utf8ToBase64(publicId)}.json`, source.queryParams());
562
562
  fetch(metadataUrl, {
563
563
  headers: {
564
- 'X-Cld-Video-Player-Version': "4.0.1"
564
+ 'X-Cld-Video-Player-Version': "4.0.2-edge.1"
565
565
  }
566
566
  }).then(response => {
567
567
  if (!response.ok) throw new Error(`HTTP ${response.status}`);
@@ -2505,8 +2505,7 @@ class VideoSource extends BaseSource {
2505
2505
  }
2506
2506
  generateSources() {
2507
2507
  if (this.isRawUrl) {
2508
- const type = this.sourceTypes()[0] === 'auto' ? null : this.sourceTypes()[0];
2509
- return [this.generateRawSource(this.publicId(), type)];
2508
+ return [this.generateRawSource(this.publicId(), this.sourceTypes()[0])];
2510
2509
  }
2511
2510
  const srcs = this.sourceTypes().map(sourceType => {
2512
2511
  const srcTransformation = this.sourceTransformation()[sourceType] || this.transformation();
@@ -2561,15 +2560,14 @@ class VideoSource extends BaseSource {
2561
2560
  return srcs;
2562
2561
  }
2563
2562
  generateRawSource(url, type) {
2564
- type = type || url.split('.').pop();
2565
- const isAdaptive = ADAPTIVE_SOURCETYPES.includes(type);
2566
- if (CONTAINER_MIME_TYPES[type]) {
2567
- type = CONTAINER_MIME_TYPES[type];
2568
- } else {
2569
- type = type ? `video/${type}` : null;
2563
+ // If type is not provided (default is 'auto'), determine it from the URL extension
2564
+ if (!type || type === 'auto') {
2565
+ const ext = url.split('.').pop().split(/[?#]/)[0].toLowerCase();
2566
+ type = COMMON_VIDEO_EXTENSIONS.includes(ext) ? ext : 'auto';
2570
2567
  }
2568
+ const isAdaptive = ADAPTIVE_SOURCETYPES.includes(type);
2571
2569
  return {
2572
- type,
2570
+ type: CONTAINER_MIME_TYPES[type] || `video/${type}`,
2573
2571
  src: url,
2574
2572
  cldSrc: this,
2575
2573
  isAdaptive,
@@ -3198,7 +3196,7 @@ class CloudinaryAnalytics {
3198
3196
  }, {
3199
3197
  ...(isPlainObject(this.analyticsOptions) ? this.analyticsOptions : {}),
3200
3198
  videoPlayerType: 'cloudinary video player',
3201
- videoPlayerVersion: "4.0.1"
3199
+ videoPlayerVersion: "4.0.2-edge.1"
3202
3200
  });
3203
3201
  } else if (this.currentVideoMetadata.cloudName !== metadata.cloudName || this.currentVideoMetadata.publicId !== metadata.publicId) {
3204
3202
  this.cloudinaryAnalytics.stopManualTracking();
@@ -5196,7 +5194,7 @@ class VideoPlayer {
5196
5194
  const analyticsData = getAnalyticsFromPlayerOptions(options);
5197
5195
  const analyticsParams = new URLSearchParams(analyticsData).toString();
5198
5196
  const baseParams = new URLSearchParams({
5199
- vpVersion: "4.0.1",
5197
+ vpVersion: "4.0.2-edge.1",
5200
5198
  vpInstanceId: this.getVPInstanceId(),
5201
5199
  cloudName: options.cloudinary.cloud_name,
5202
5200
  ...internalAnalyticsMetadata
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudinary-video-player",
3
- "version": "4.0.1",
3
+ "version": "4.0.2-edge.1",
4
4
  "description": "Cloudinary Video Player",
5
5
  "author": "Cloudinary",
6
6
  "license": "MIT",