@srgssr/pillarbox-web 1.34.2 → 1.35.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/pillarbox-core.cjs +6 -2
- package/dist/pillarbox-core.cjs.map +1 -1
- package/dist/pillarbox-core.es.js +6 -2
- package/dist/pillarbox-core.es.js.map +1 -1
- package/dist/pillarbox.cjs +7 -5
- package/dist/pillarbox.cjs.map +1 -1
- package/dist/pillarbox.es.js +7 -6
- package/dist/pillarbox.es.js.map +1 -1
- package/dist/pillarbox.umd.js +7 -5
- package/dist/pillarbox.umd.js.map +1 -1
- package/dist/pillarbox.umd.min.js +1 -1
- package/dist/pillarbox.umd.min.js.map +1 -1
- package/dist/types/build.d.ts +2 -1
- package/dist/types/build.d.ts.map +1 -1
- package/dist/types/src/dataProvider/model/MediaComposition.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/pillarbox.es.js
CHANGED
|
@@ -90,7 +90,7 @@ function _toPropertyKey(t) {
|
|
|
90
90
|
return "symbol" == typeof i ? i : i + "";
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
const version = "1.
|
|
93
|
+
const version = "1.35.0";
|
|
94
94
|
|
|
95
95
|
/** @import VJSPlayer from 'video.js/dist/types/player' */
|
|
96
96
|
/** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
|
|
@@ -486,16 +486,20 @@ pillarbox.options.fill = true;
|
|
|
486
486
|
* Configuration options for HTML5 settings in Pillarbox.
|
|
487
487
|
*
|
|
488
488
|
* @see [VHS useForcedSubtitles Option]{@link https://github.com/videojs/http-streaming/blob/main/README.md#useforcedsubtitles}
|
|
489
|
+
* @see [VHS overrideNative Option]{@link https://github.com/videojs/http-streaming#overridenative}
|
|
489
490
|
* @type {Object}
|
|
490
491
|
* @property {Object} vhs - Configuration for the Video.js HTTP Streaming.
|
|
491
492
|
* @property {boolean} useForcedSubtitles - Enables the player to display forced subtitles by default.
|
|
492
493
|
* Forced subtitles are pieces of information intended for display when no other text representation
|
|
493
494
|
* is selected. They are used to clarify dialogue, provide alternate languages, display texted graphics,
|
|
494
495
|
* or present location/person IDs that are not otherwise covered in the dubbed/localized audio.
|
|
496
|
+
* @property {boolean} overrideNative - Try to use videojs-http-streaming even on platforms that
|
|
497
|
+
* provide some level of HLS support natively
|
|
495
498
|
*/
|
|
496
499
|
pillarbox.options.html5 = {
|
|
497
500
|
vhs: {
|
|
498
|
-
useForcedSubtitles: true
|
|
501
|
+
useForcedSubtitles: true,
|
|
502
|
+
overrideNative: !pillarbox.browser.IS_SAFARI
|
|
499
503
|
}
|
|
500
504
|
};
|
|
501
505
|
/**
|
|
@@ -2922,9 +2926,6 @@ class MediaComposition {
|
|
|
2922
2926
|
if (!this.mainChapter) {
|
|
2923
2927
|
this.mainChapter = this.findChapterByUrn(this.chapterUrn);
|
|
2924
2928
|
}
|
|
2925
|
-
if (!this.mainChapter && this.chapterList && this.chapterList.length > 0) {
|
|
2926
|
-
[this.mainChapter] = this.chapterList;
|
|
2927
|
-
}
|
|
2928
2929
|
return this.mainChapter;
|
|
2929
2930
|
}
|
|
2930
2931
|
|
|
@@ -4537,5 +4538,5 @@ pillarbox.options.srgOptions = {
|
|
|
4537
4538
|
tagCommanderScriptURL: undefined
|
|
4538
4539
|
};
|
|
4539
4540
|
|
|
4540
|
-
export { DataProvider, MediaComposition, PillarboxMonitoring, Player, SRGAnalytics, SrgSsr, pillarbox as default };
|
|
4541
|
+
export { DataProvider, Image as ImageUtils, MediaComposition, PillarboxMonitoring, Player, SRGAnalytics, SrgSsr, pillarbox as default };
|
|
4541
4542
|
//# sourceMappingURL=pillarbox.es.js.map
|