@srgssr/pillarbox-web 1.34.1 → 1.35.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.
@@ -93,7 +93,7 @@
93
93
  return "symbol" == typeof i ? i : i + "";
94
94
  }
95
95
 
96
- const version$8 = "1.34.0";
96
+ const version$8 = "1.35.0";
97
97
 
98
98
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
99
99
 
@@ -71514,16 +71514,20 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
71514
71514
  * Configuration options for HTML5 settings in Pillarbox.
71515
71515
  *
71516
71516
  * @see [VHS useForcedSubtitles Option]{@link https://github.com/videojs/http-streaming/blob/main/README.md#useforcedsubtitles}
71517
+ * @see [VHS overrideNative Option]{@link https://github.com/videojs/http-streaming#overridenative}
71517
71518
  * @type {Object}
71518
71519
  * @property {Object} vhs - Configuration for the Video.js HTTP Streaming.
71519
71520
  * @property {boolean} useForcedSubtitles - Enables the player to display forced subtitles by default.
71520
71521
  * Forced subtitles are pieces of information intended for display when no other text representation
71521
71522
  * is selected. They are used to clarify dialogue, provide alternate languages, display texted graphics,
71522
71523
  * or present location/person IDs that are not otherwise covered in the dubbed/localized audio.
71524
+ * @property {boolean} overrideNative - Try to use videojs-http-streaming even on platforms that
71525
+ * provide some level of HLS support natively
71523
71526
  */
71524
71527
  pillarbox.options.html5 = {
71525
71528
  vhs: {
71526
- useForcedSubtitles: true
71529
+ useForcedSubtitles: true,
71530
+ overrideNative: !pillarbox.browser.IS_SAFARI
71527
71531
  }
71528
71532
  };
71529
71533
  /**
@@ -72419,8 +72423,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
72419
72423
  media_quality: this.srcMediaData.mediaData.quality,
72420
72424
  // TODO use media_is_dvr, media_is_live to define peach media_stream_type
72421
72425
  media_subtitles_on: this.isTextTrackEnabled(),
72422
- media_volume: (this.player.volume() * 100).toFixed(0),
72423
- navigation_environment: this.environment
72426
+ media_volume: (this.player.volume() * 100).toFixed(0)
72424
72427
  };
72425
72428
  if (this.isAudioTrackEnabled()) {
72426
72429
  labels.media_audio_track = this.getCurrentAudioTrack();
@@ -72459,7 +72462,8 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
72459
72462
  media_player_name: 'pillarbox-web',
72460
72463
  // TODO add a property playerName in the constructor with a default value ?
72461
72464
  media_player_version: this.playerVersion,
72462
- media_url: this.srcMediaData.src
72465
+ media_url: this.srcMediaData.src,
72466
+ navigation_environment: this.environment
72463
72467
  };
72464
72468
  const analyticsMetadata = this.srcMediaData.mediaData.analyticsMetadata || {};
72465
72469
  window.tc_vars = Object.assign({}, window.tc_vars, data, analyticsMetadata);
@@ -73950,9 +73954,6 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
73950
73954
  if (!this.mainChapter) {
73951
73955
  this.mainChapter = this.findChapterByUrn(this.chapterUrn);
73952
73956
  }
73953
- if (!this.mainChapter && this.chapterList && this.chapterList.length > 0) {
73954
- [this.mainChapter] = this.chapterList;
73955
- }
73956
73957
  return this.mainChapter;
73957
73958
  }
73958
73959
 
@@ -75566,6 +75567,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
75566
75567
  };
75567
75568
 
75568
75569
  exports.DataProvider = DataProvider;
75570
+ exports.ImageUtils = Image;
75569
75571
  exports.MediaComposition = MediaComposition;
75570
75572
  exports.PillarboxMonitoring = PillarboxMonitoring;
75571
75573
  exports.Player = Player;