@srgssr/pillarbox-web 1.30.0 → 1.31.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 +1 -1
- package/dist/pillarbox-core.es.js +1 -1
- package/dist/pillarbox.cjs +7 -2
- package/dist/pillarbox.cjs.map +1 -1
- package/dist/pillarbox.es.js +7 -2
- package/dist/pillarbox.es.js.map +1 -1
- package/dist/pillarbox.umd.js +7 -2
- 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/src/middleware/srgssr.d.ts.map +1 -1
- package/package.json +1 -1
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.30.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' */
|
|
@@ -3690,7 +3690,12 @@ class SrgSsr {
|
|
|
3690
3690
|
static addTextTrackCue(textTrack, data) {
|
|
3691
3691
|
const startTime = (Number.isFinite(data.markIn) ? data.markIn : data.fullLengthMarkIn) / 1000;
|
|
3692
3692
|
const endTime = (Number.isFinite(data.markOut) ? data.markOut : data.fullLengthMarkOut) / 1000;
|
|
3693
|
-
|
|
3693
|
+
const text = JSON.stringify(data);
|
|
3694
|
+
const cue = new VTTCue(startTime, endTime, text);
|
|
3695
|
+
if (data.urn) {
|
|
3696
|
+
cue.id = data.urn;
|
|
3697
|
+
}
|
|
3698
|
+
textTrack.addCue(cue);
|
|
3694
3699
|
}
|
|
3695
3700
|
|
|
3696
3701
|
/**
|