@srgssr/pillarbox-web 1.31.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 +9 -7
- package/dist/pillarbox.cjs.map +1 -1
- package/dist/pillarbox.es.js +9 -7
- package/dist/pillarbox.es.js.map +1 -1
- package/dist/pillarbox.umd.js +13 -11
- 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/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.31.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' */
|
|
@@ -489,7 +489,7 @@ class Image {
|
|
|
489
489
|
* @property {String} [image.format=jpg] is the format of the image, default value jpg.
|
|
490
490
|
* @property {String} [imageServiceUrl] Url of the image service that needs to comply with the specification defined by the IL.
|
|
491
491
|
*
|
|
492
|
-
* @see https://
|
|
492
|
+
* @see https://srgssr-ch.atlassian.net/wiki/spaces/SRGPLAY/pages/799082429/Project+-+Image+Service
|
|
493
493
|
*
|
|
494
494
|
* @returns {String|undefined} the image scaling URL.
|
|
495
495
|
*/
|
|
@@ -1234,7 +1234,7 @@ class SRGAnalytics {
|
|
|
1234
1234
|
* - pos should be sent when the media player is in "play mode".
|
|
1235
1235
|
* - once the video is paused or stopped, the timer for sending these actions must be stopped.
|
|
1236
1236
|
*
|
|
1237
|
-
* @see https://
|
|
1237
|
+
* @see https://srgssr-ch.atlassian.net/wiki/spaces/INTFORSCHUNG/pages/795904171/standard+streaming+events+sequence+of+events+for+media+player+actions#mandatory-player-events
|
|
1238
1238
|
*/
|
|
1239
1239
|
heartBeat() {
|
|
1240
1240
|
this.heartBeatIntervalId = setInterval(() => {
|
|
@@ -1525,7 +1525,7 @@ class SRGAnalytics {
|
|
|
1525
1525
|
* Sent to ComScore when the playback rate changes.
|
|
1526
1526
|
*
|
|
1527
1527
|
* @see https://github.com/SRGSSR/srgletterbox-web/issues/761
|
|
1528
|
-
* @see https://
|
|
1528
|
+
* @see https://srgssr-ch.atlassian.net/browse/ADI-256
|
|
1529
1529
|
*/
|
|
1530
1530
|
rateChange() {
|
|
1531
1531
|
this.notify('change_playback_rate');
|
|
@@ -1619,11 +1619,11 @@ class SRGAnalytics {
|
|
|
1619
1619
|
* It's expected notifyBufferStart() to be called when the player starts buffering
|
|
1620
1620
|
* and a call to notifyBufferStop() when content resumes after buffering.
|
|
1621
1621
|
*
|
|
1622
|
-
* @see Item 2: https://
|
|
1622
|
+
* @see Item 2: https://srgssr-ch.atlassian.net/browse/PLAY-2628
|
|
1623
1623
|
*
|
|
1624
1624
|
* After the issue PLAYRTS-321
|
|
1625
|
-
* @see Fix: https://
|
|
1626
|
-
* @see Fix: https://
|
|
1625
|
+
* @see Fix: https://srgssr-ch.atlassian.net/browse/PLAYRTS-321?focusedCommentId=201023&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-201023
|
|
1626
|
+
* @see Fix: https://srgssr-ch.atlassian.net/browse/PLAYRTS-3065
|
|
1627
1627
|
*/
|
|
1628
1628
|
waiting() {
|
|
1629
1629
|
if (!this.initialized || this.isWaiting) {
|
|
@@ -4224,6 +4224,7 @@ class SrgSsr {
|
|
|
4224
4224
|
if (!player.options().trackers.srgAnalytics) {
|
|
4225
4225
|
const srgAnalytics = new SRGAnalytics(player, {
|
|
4226
4226
|
debug: player.debug(),
|
|
4227
|
+
environment: player.options().srgOptions.analyticsEnvironment,
|
|
4227
4228
|
playerVersion: pillarbox.VERSION.pillarbox,
|
|
4228
4229
|
tagCommanderScriptURL: player.options().srgOptions.tagCommanderScriptURL
|
|
4229
4230
|
});
|
|
@@ -4317,6 +4318,7 @@ pillarbox.options.srgOptions = {
|
|
|
4317
4318
|
dataProvider: undefined,
|
|
4318
4319
|
dataProviderHost: undefined,
|
|
4319
4320
|
dataProviderUrlHandler: undefined,
|
|
4321
|
+
analyticsEnvironment: undefined,
|
|
4320
4322
|
tagCommanderScriptURL: undefined
|
|
4321
4323
|
};
|
|
4322
4324
|
|