@srgssr/pillarbox-web 1.34.1 → 1.34.2

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.
@@ -3,7 +3,7 @@
3
3
  const videojs = require('video.js');
4
4
  require('videojs-contrib-eme');
5
5
 
6
- const version = "1.34.0";
6
+ const version = "1.34.1";
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.34.0";
4
+ const version = "1.34.1";
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.34.0";
97
+ const version = "1.34.1";
98
98
 
99
99
  /** @import VJSPlayer from 'video.js/dist/types/player' */
100
100
  /** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
@@ -1395,8 +1395,7 @@ class SRGAnalytics {
1395
1395
  media_quality: this.srcMediaData.mediaData.quality,
1396
1396
  // TODO use media_is_dvr, media_is_live to define peach media_stream_type
1397
1397
  media_subtitles_on: this.isTextTrackEnabled(),
1398
- media_volume: (this.player.volume() * 100).toFixed(0),
1399
- navigation_environment: this.environment
1398
+ media_volume: (this.player.volume() * 100).toFixed(0)
1400
1399
  };
1401
1400
  if (this.isAudioTrackEnabled()) {
1402
1401
  labels.media_audio_track = this.getCurrentAudioTrack();
@@ -1435,7 +1434,8 @@ class SRGAnalytics {
1435
1434
  media_player_name: 'pillarbox-web',
1436
1435
  // TODO add a property playerName in the constructor with a default value ?
1437
1436
  media_player_version: this.playerVersion,
1438
- media_url: this.srcMediaData.src
1437
+ media_url: this.srcMediaData.src,
1438
+ navigation_environment: this.environment
1439
1439
  };
1440
1440
  const analyticsMetadata = this.srcMediaData.mediaData.analyticsMetadata || {};
1441
1441
  window.tc_vars = Object.assign({}, window.tc_vars, data, analyticsMetadata);