bigscreen-player 8.7.0 → 8.7.1

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.
@@ -1,5 +1,5 @@
1
1
  import { fromXML, generateISD, renderHTML } from 'smp-imsc';
2
- import { f as findSegmentTemplate, L as LoadUrl, a as DebugToolInstance, P as Plugins, U as Utils, D as DOMHelpers } from './main-13a847f9.js';
2
+ import { f as findSegmentTemplate, L as LoadUrl, a as DebugToolInstance, P as Plugins, U as Utils, D as DOMHelpers } from './main-39559d4f.js';
3
3
 
4
4
  const SEGMENTS_BUFFER_SIZE = 3;
5
5
  const LOAD_ERROR_COUNT_MAX = 3;
@@ -1,4 +1,4 @@
1
- import { D as DOMHelpers, a as DebugToolInstance, P as Plugins, L as LoadUrl, T as TransportControlPosition } from './main-13a847f9.js';
1
+ import { D as DOMHelpers, a as DebugToolInstance, P as Plugins, L as LoadUrl, T as TransportControlPosition } from './main-39559d4f.js';
2
2
 
3
3
  /**
4
4
  * Safely checks if an attribute exists on an element.
@@ -5960,7 +5960,7 @@ BasicStrategy.getLiveSupport = () => LiveSupport.SEEKABLE;
5960
5960
  function StrategyPicker() {
5961
5961
  return new Promise((resolve, reject) => {
5962
5962
  if (window.bigscreenPlayer.playbackStrategy === PlaybackStrategy.MSE) {
5963
- return import('./msestrategy-caa72d9e.js')
5963
+ return import('./msestrategy-4c14d0cd.js')
5964
5964
  .then(({ default: MSEStrategy }) => resolve(MSEStrategy))
5965
5965
  .catch(() => {
5966
5966
  reject({ error: "strategyDynamicLoadError" });
@@ -6383,7 +6383,7 @@ const PauseTriggers = {
6383
6383
  DEVICE: 3,
6384
6384
  };
6385
6385
 
6386
- var Version = "8.7.0";
6386
+ var Version = "8.7.1";
6387
6387
 
6388
6388
  var sourceList;
6389
6389
  var source;
@@ -7734,7 +7734,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
7734
7734
 
7735
7735
  if (available()) {
7736
7736
  if (useLegacySubs) {
7737
- import('./legacysubtitles-a70e27ca.js')
7737
+ import('./legacysubtitles-9f1cf253.js')
7738
7738
  .then(({ default: LegacySubtitles }) => {
7739
7739
  subtitlesContainer = LegacySubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
7740
7740
  callback(subtitlesEnabled);
@@ -7743,7 +7743,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
7743
7743
  Plugins.interface.onSubtitlesDynamicLoadError();
7744
7744
  });
7745
7745
  } else {
7746
- import('./imscsubtitles-10b02969.js')
7746
+ import('./imscsubtitles-9740e301.js')
7747
7747
  .then(({ default: IMSCSubtitles }) => {
7748
7748
  subtitlesContainer = IMSCSubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
7749
7749
  callback(subtitlesEnabled);
package/dist/esm/main.js CHANGED
@@ -1 +1 @@
1
- export { B as BigscreenPlayer, a as DebugTool, E as EntryCategory, c as LiveSupport, M as MediaKinds, g as MediaState, h as MockBigscreenPlayer, b as PauseTriggers, i as PlaybackStrategy, j as TransferFormat, T as TransportControlPosition, W as WindowTypes, k as isMessage, l as isMetric, m as isTrace } from './main-13a847f9.js';
1
+ export { B as BigscreenPlayer, a as DebugTool, E as EntryCategory, c as LiveSupport, M as MediaKinds, g as MediaState, h as MockBigscreenPlayer, b as PauseTriggers, i as PlaybackStrategy, j as TransferFormat, T as TransportControlPosition, W as WindowTypes, k as isMessage, l as isMetric, m as isTrace } from './main-39559d4f.js';
@@ -1,5 +1,5 @@
1
1
  import { MediaPlayer } from 'dashjs/index_mediaplayerOnly';
2
- import { W as WindowTypes, U as Utils, b as PauseTriggers, c as LiveSupport, M as MediaKinds, a as DebugToolInstance, d as TimeUtils, e as DynamicWindowUtils, g as MediaState, P as Plugins, D as DOMHelpers } from './main-13a847f9.js';
2
+ import { W as WindowTypes, U as Utils, b as PauseTriggers, c as LiveSupport, M as MediaKinds, a as DebugToolInstance, d as TimeUtils, e as DynamicWindowUtils, g as MediaState, P as Plugins, D as DOMHelpers } from './main-39559d4f.js';
3
3
 
4
4
  function filter(manifest, representationOptions) {
5
5
  const constantFps = representationOptions.constantFps;
@@ -219,6 +219,7 @@ function MSEStrategy(mediaSources, windowType, mediaKind, playbackElement, isUHD
219
219
 
220
220
  let publishedSeekEvent = false;
221
221
  let isSeeking = false;
222
+ let manifestRequestTime;
222
223
 
223
224
  let playerMetadata = {
224
225
  playbackBitrate: undefined,
@@ -235,6 +236,7 @@ function MSEStrategy(mediaSources, windowType, mediaKind, playbackElement, isUHD
235
236
  GAP_JUMP: "gapCausedInternalSeek",
236
237
  GAP_JUMP_TO_END: "gapCausedSeekToPeriodEnd",
237
238
  MANIFEST_LOADED: "manifestLoaded",
239
+ MANIFEST_LOADING_FINISHED: "manifestLoadingFinished",
238
240
  DOWNLOAD_MANIFEST_ERROR_CODE: 25,
239
241
  DOWNLOAD_CONTENT_ERROR_CODE: 27,
240
242
  DOWNLOAD_INIT_SEGMENT_ERROR_CODE: 28,
@@ -430,6 +432,8 @@ function MSEStrategy(mediaSources, windowType, mediaKind, playbackElement, isUHD
430
432
  ManifestModifier.filter(manifest, representationOptions);
431
433
  ManifestModifier.generateBaseUrls(manifest, mediaSources.availableSources());
432
434
 
435
+ manifest.manifestRequestTime = manifestRequestTime;
436
+
433
437
  emitManifestInfo(manifest);
434
438
  }
435
439
  }
@@ -704,6 +708,11 @@ function MSEStrategy(mediaSources, windowType, mediaKind, playbackElement, isUHD
704
708
  mediaPlayer.on(DashJSEvents.GAP_JUMP, onGapJump);
705
709
  mediaPlayer.on(DashJSEvents.GAP_JUMP_TO_END, onGapJump);
706
710
  mediaPlayer.on(DashJSEvents.QUOTA_EXCEEDED, onQuotaExceeded);
711
+ mediaPlayer.on(DashJSEvents.MANIFEST_LOADING_FINISHED, manifestLoadingFinished);
712
+ }
713
+
714
+ function manifestLoadingFinished(event) {
715
+ manifestRequestTime = event.request.requestEndDate.getTime() - event.request.requestStartDate.getTime();
707
716
  }
708
717
 
709
718
  function getSeekableRange() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigscreen-player",
3
- "version": "8.7.0",
3
+ "version": "8.7.1",
4
4
  "type": "module",
5
5
  "description": "Simplified media playback for bigscreen devices.",
6
6
  "main": "dist/esm/main.js",