@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-core.cjs
CHANGED
package/dist/pillarbox.cjs
CHANGED
|
@@ -94,7 +94,7 @@ function _toPropertyKey(t) {
|
|
|
94
94
|
return "symbol" == typeof i ? i : i + "";
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
const version = "1.
|
|
97
|
+
const version = "1.30.0";
|
|
98
98
|
|
|
99
99
|
/** @import VJSPlayer from 'video.js/dist/types/player' */
|
|
100
100
|
/** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
|
|
@@ -3694,7 +3694,12 @@ class SrgSsr {
|
|
|
3694
3694
|
static addTextTrackCue(textTrack, data) {
|
|
3695
3695
|
const startTime = (Number.isFinite(data.markIn) ? data.markIn : data.fullLengthMarkIn) / 1000;
|
|
3696
3696
|
const endTime = (Number.isFinite(data.markOut) ? data.markOut : data.fullLengthMarkOut) / 1000;
|
|
3697
|
-
|
|
3697
|
+
const text = JSON.stringify(data);
|
|
3698
|
+
const cue = new VTTCue(startTime, endTime, text);
|
|
3699
|
+
if (data.urn) {
|
|
3700
|
+
cue.id = data.urn;
|
|
3701
|
+
}
|
|
3702
|
+
textTrack.addCue(cue);
|
|
3698
3703
|
}
|
|
3699
3704
|
|
|
3700
3705
|
/**
|