@srgssr/pillarbox-web 1.34.0 → 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.
@@ -93,7 +93,7 @@
93
93
  return "symbol" == typeof i ? i : i + "";
94
94
  }
95
95
 
96
- const version$8 = "1.33.1";
96
+ const version$8 = "1.34.1";
97
97
 
98
98
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
99
99
 
@@ -72419,8 +72419,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
72419
72419
  media_quality: this.srcMediaData.mediaData.quality,
72420
72420
  // TODO use media_is_dvr, media_is_live to define peach media_stream_type
72421
72421
  media_subtitles_on: this.isTextTrackEnabled(),
72422
- media_volume: (this.player.volume() * 100).toFixed(0),
72423
- navigation_environment: this.environment
72422
+ media_volume: (this.player.volume() * 100).toFixed(0)
72424
72423
  };
72425
72424
  if (this.isAudioTrackEnabled()) {
72426
72425
  labels.media_audio_track = this.getCurrentAudioTrack();
@@ -72452,14 +72451,15 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
72452
72451
  getInternalLabels() {
72453
72452
  const data = {
72454
72453
  media_bu_distributer: this.srcMediaData.mediaData.vendor,
72455
- media_google_cast: this.player.tech(true).name() === 'PillarboxReceiver',
72454
+ media_google_cast: (this.player.tech(true).name() === 'PillarboxReceiver').toString(),
72456
72455
  media_embedding_url: document.referrer,
72457
72456
  media_player_display: 'default',
72458
72457
  // TODO implement if it still relevant
72459
72458
  media_player_name: 'pillarbox-web',
72460
72459
  // TODO add a property playerName in the constructor with a default value ?
72461
72460
  media_player_version: this.playerVersion,
72462
- media_url: this.srcMediaData.src
72461
+ media_url: this.srcMediaData.src,
72462
+ navigation_environment: this.environment
72463
72463
  };
72464
72464
  const analyticsMetadata = this.srcMediaData.mediaData.analyticsMetadata || {};
72465
72465
  window.tc_vars = Object.assign({}, window.tc_vars, data, analyticsMetadata);