cloudinary-video-player 4.0.1 → 4.0.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.
- package/dist/149.min.js +3 -3
- package/dist/309.min.js +2 -2
- package/dist/689.min.js +2 -2
- package/dist/801.min.js +3 -3
- package/dist/adaptive-streaming.js +2 -2
- package/dist/adaptive-streaming.min.js +2 -2
- package/dist/chapters.js +2 -2
- package/dist/chapters.min.js +2 -2
- package/dist/cld-player-core.js +8 -8
- package/dist/cld-player-core.min.js +3 -3
- package/dist/cld-poster-url.js +2 -2
- package/dist/cld-poster-url.min.js +2 -2
- package/dist/cld-video-player.css +2 -2
- package/dist/cld-video-player.js +8 -8
- package/dist/cld-video-player.light.js +8 -8
- package/dist/cld-video-player.light.min.js +3 -3
- package/dist/cld-video-player.min.css +2 -2
- package/dist/cld-video-player.min.js +3 -3
- package/dist/colors.js +2 -2
- package/dist/colors.min.js +2 -2
- package/dist/dash.js +2 -2
- package/dist/dash.min.js +2 -2
- package/dist/debug.js +2 -2
- package/dist/debug.min.js +2 -2
- package/dist/ima.js +2 -2
- package/dist/ima.min.js +2 -2
- package/dist/interaction-areas.js +2 -2
- package/dist/interaction-areas.min.js +2 -2
- package/dist/node_modules_lodash_throttle_js.js +2 -2
- package/dist/player-full.js +8 -8
- package/dist/player-full.min.js +3 -3
- package/dist/player.css +2 -2
- package/dist/player.js +2 -2
- package/dist/player.min.css +2 -2
- package/dist/player.min.js +2 -2
- package/dist/playlist.js +2 -2
- package/dist/playlist.min.js +2 -2
- package/dist/recommendations-overlay.js +2 -2
- package/dist/recommendations-overlay.min.js +2 -2
- package/dist/share.js +2 -2
- package/dist/share.min.js +2 -2
- package/dist/shoppable.js +2 -2
- package/dist/shoppable.min.js +2 -2
- package/dist/utils_fetch-config_js.js +2 -2
- package/dist/utils_schedule_js.js +2 -2
- package/dist/visual-search.js +2 -2
- package/dist/visual-search.min.js +2 -2
- package/lib/cld-video-player.min.css +2 -2
- package/lib/index2.js +1 -1
- package/lib/player.min.css +2 -2
- package/lib/video-player.js +10 -12
- package/package.json +1 -1
package/lib/video-player.js
CHANGED
|
@@ -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.
|
|
564
|
+
'X-Cld-Video-Player-Version': "4.0.2-edge.0"
|
|
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
|
-
|
|
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
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
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.
|
|
3199
|
+
videoPlayerVersion: "4.0.2-edge.0"
|
|
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.
|
|
5197
|
+
vpVersion: "4.0.2-edge.0",
|
|
5200
5198
|
vpInstanceId: this.getVPInstanceId(),
|
|
5201
5199
|
cloudName: options.cloudinary.cloud_name,
|
|
5202
5200
|
...internalAnalyticsMetadata
|