@srgssr/pillarbox-web 1.30.0 → 1.32.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/README.md +11 -0
- package/dist/pillarbox-core.cjs +1 -1
- package/dist/pillarbox-core.es.js +1 -1
- package/dist/pillarbox.cjs +15 -8
- package/dist/pillarbox.cjs.map +1 -1
- package/dist/pillarbox.es.js +15 -8
- package/dist/pillarbox.es.js.map +1 -1
- package/dist/pillarbox.umd.js +19 -12
- package/dist/pillarbox.umd.js.map +1 -1
- package/dist/pillarbox.umd.min.js +2 -2
- package/dist/pillarbox.umd.min.js.map +1 -1
- package/dist/types/src/middleware/srgssr.d.ts.map +1 -1
- package/dist/types/src/middleware/typedef.d.ts +6 -0
- package/dist/types/src/middleware/typedef.d.ts.map +1 -1
- package/dist/types/src/trackers/SRGAnalytics.d.ts +5 -5
- package/dist/types/src/utils/Image.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -157,6 +157,17 @@ If you want to enhance our demo application you can get involved
|
|
|
157
157
|
here: https://github.com/SRGSSR/pillarbox-web-demo
|
|
158
158
|
To contribute to the theme editor go to: https://github.com/SRGSSR/pillarbox-web-theme-editor
|
|
159
159
|
|
|
160
|
+
### Using `nvm`
|
|
161
|
+
|
|
162
|
+
This project includes an `.nvmrc` file that specifies the recommended Node.js version.
|
|
163
|
+
|
|
164
|
+
If you use `nvm`, you can automatically switch to the correct Node version by running: `nvm use`
|
|
165
|
+
If the required version is not installed yet, run: `nvm install`. This will install the Node.js
|
|
166
|
+
version defined in `.nvmrc` and switch your shell to use it.
|
|
167
|
+
|
|
168
|
+
For more details on installing and using the `.nvmrc` file see the official
|
|
169
|
+
[`.nvmrc` documentation][nvmrc-doc].
|
|
170
|
+
|
|
160
171
|
## License
|
|
161
172
|
|
|
162
173
|
See the [LICENSE](LICENSE) file for more information.
|
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.31.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' */
|
|
@@ -493,7 +493,7 @@ class Image {
|
|
|
493
493
|
* @property {String} [image.format=jpg] is the format of the image, default value jpg.
|
|
494
494
|
* @property {String} [imageServiceUrl] Url of the image service that needs to comply with the specification defined by the IL.
|
|
495
495
|
*
|
|
496
|
-
* @see https://
|
|
496
|
+
* @see https://srgssr-ch.atlassian.net/wiki/spaces/SRGPLAY/pages/799082429/Project+-+Image+Service
|
|
497
497
|
*
|
|
498
498
|
* @returns {String|undefined} the image scaling URL.
|
|
499
499
|
*/
|
|
@@ -1238,7 +1238,7 @@ class SRGAnalytics {
|
|
|
1238
1238
|
* - pos should be sent when the media player is in "play mode".
|
|
1239
1239
|
* - once the video is paused or stopped, the timer for sending these actions must be stopped.
|
|
1240
1240
|
*
|
|
1241
|
-
* @see https://
|
|
1241
|
+
* @see https://srgssr-ch.atlassian.net/wiki/spaces/INTFORSCHUNG/pages/795904171/standard+streaming+events+sequence+of+events+for+media+player+actions#mandatory-player-events
|
|
1242
1242
|
*/
|
|
1243
1243
|
heartBeat() {
|
|
1244
1244
|
this.heartBeatIntervalId = setInterval(() => {
|
|
@@ -1529,7 +1529,7 @@ class SRGAnalytics {
|
|
|
1529
1529
|
* Sent to ComScore when the playback rate changes.
|
|
1530
1530
|
*
|
|
1531
1531
|
* @see https://github.com/SRGSSR/srgletterbox-web/issues/761
|
|
1532
|
-
* @see https://
|
|
1532
|
+
* @see https://srgssr-ch.atlassian.net/browse/ADI-256
|
|
1533
1533
|
*/
|
|
1534
1534
|
rateChange() {
|
|
1535
1535
|
this.notify('change_playback_rate');
|
|
@@ -1623,11 +1623,11 @@ class SRGAnalytics {
|
|
|
1623
1623
|
* It's expected notifyBufferStart() to be called when the player starts buffering
|
|
1624
1624
|
* and a call to notifyBufferStop() when content resumes after buffering.
|
|
1625
1625
|
*
|
|
1626
|
-
* @see Item 2: https://
|
|
1626
|
+
* @see Item 2: https://srgssr-ch.atlassian.net/browse/PLAY-2628
|
|
1627
1627
|
*
|
|
1628
1628
|
* After the issue PLAYRTS-321
|
|
1629
|
-
* @see Fix: https://
|
|
1630
|
-
* @see Fix: https://
|
|
1629
|
+
* @see Fix: https://srgssr-ch.atlassian.net/browse/PLAYRTS-321?focusedCommentId=201023&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-201023
|
|
1630
|
+
* @see Fix: https://srgssr-ch.atlassian.net/browse/PLAYRTS-3065
|
|
1631
1631
|
*/
|
|
1632
1632
|
waiting() {
|
|
1633
1633
|
if (!this.initialized || this.isWaiting) {
|
|
@@ -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
|
/**
|
|
@@ -4223,6 +4228,7 @@ class SrgSsr {
|
|
|
4223
4228
|
if (!player.options().trackers.srgAnalytics) {
|
|
4224
4229
|
const srgAnalytics = new SRGAnalytics(player, {
|
|
4225
4230
|
debug: player.debug(),
|
|
4231
|
+
environment: player.options().srgOptions.analyticsEnvironment,
|
|
4226
4232
|
playerVersion: pillarbox.VERSION.pillarbox,
|
|
4227
4233
|
tagCommanderScriptURL: player.options().srgOptions.tagCommanderScriptURL
|
|
4228
4234
|
});
|
|
@@ -4316,6 +4322,7 @@ pillarbox.options.srgOptions = {
|
|
|
4316
4322
|
dataProvider: undefined,
|
|
4317
4323
|
dataProviderHost: undefined,
|
|
4318
4324
|
dataProviderUrlHandler: undefined,
|
|
4325
|
+
analyticsEnvironment: undefined,
|
|
4319
4326
|
tagCommanderScriptURL: undefined
|
|
4320
4327
|
};
|
|
4321
4328
|
|