@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 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.
@@ -3,7 +3,7 @@
3
3
  const videojs = require('video.js');
4
4
  require('videojs-contrib-eme');
5
5
 
6
- const version = "1.30.0";
6
+ const version = "1.31.0";
7
7
 
8
8
  /** @import VJSPlayer from 'video.js/dist/types/player' */
9
9
  /** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
@@ -1,7 +1,7 @@
1
1
  import videojs from 'video.js';
2
2
  import 'videojs-contrib-eme';
3
3
 
4
- const version = "1.30.0";
4
+ const version = "1.31.0";
5
5
 
6
6
  /** @import VJSPlayer from 'video.js/dist/types/player' */
7
7
  /** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
@@ -94,7 +94,7 @@ function _toPropertyKey(t) {
94
94
  return "symbol" == typeof i ? i : i + "";
95
95
  }
96
96
 
97
- const version = "1.30.0";
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://confluence.srg.beecollaboration.com/pages/viewpage.action?spaceKey=SRGPLAY&title=Project+-+Image+Service
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://confluence.srg.beecollaboration.com/display/INTFORSCHUNG/standard+streaming+events%3A+sequence+of+events+for+media+player+actions#standardstreamingevents:sequenceofeventsformediaplayeractions-mandatoryplayerevents
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://jira.srg.beecollaboration.com/browse/ADI-256
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://jira.srg.beecollaboration.com/browse/PLAY-2628
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://jira.srg.beecollaboration.com/browse/PLAYRTS-321?focusedCommentId=201023&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-201023
1630
- * @see Fix: https://jira.srg.beecollaboration.com/browse/PLAYRTS-3065
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) {
@@ -4228,6 +4228,7 @@ class SrgSsr {
4228
4228
  if (!player.options().trackers.srgAnalytics) {
4229
4229
  const srgAnalytics = new SRGAnalytics(player, {
4230
4230
  debug: player.debug(),
4231
+ environment: player.options().srgOptions.analyticsEnvironment,
4231
4232
  playerVersion: pillarbox.VERSION.pillarbox,
4232
4233
  tagCommanderScriptURL: player.options().srgOptions.tagCommanderScriptURL
4233
4234
  });
@@ -4321,6 +4322,7 @@ pillarbox.options.srgOptions = {
4321
4322
  dataProvider: undefined,
4322
4323
  dataProviderHost: undefined,
4323
4324
  dataProviderUrlHandler: undefined,
4325
+ analyticsEnvironment: undefined,
4324
4326
  tagCommanderScriptURL: undefined
4325
4327
  };
4326
4328