bigscreen-player 8.7.0 → 8.7.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.
@@ -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-399e824b.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-399e824b.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-fdbb4fd5.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.2";
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-6e3a16aa.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-bac28114.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-399e824b.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-399e824b.js';
3
3
 
4
4
  function filter(manifest, representationOptions) {
5
5
  const constantFps = representationOptions.constantFps;
@@ -219,6 +219,8 @@ function MSEStrategy(mediaSources, windowType, mediaKind, playbackElement, isUHD
219
219
 
220
220
  let publishedSeekEvent = false;
221
221
  let isSeeking = false;
222
+ let manifestRequestTime;
223
+ let manifestLoadCount = 0;
222
224
 
223
225
  let playerMetadata = {
224
226
  playbackBitrate: undefined,
@@ -235,6 +237,7 @@ function MSEStrategy(mediaSources, windowType, mediaKind, playbackElement, isUHD
235
237
  GAP_JUMP: "gapCausedInternalSeek",
236
238
  GAP_JUMP_TO_END: "gapCausedSeekToPeriodEnd",
237
239
  MANIFEST_LOADED: "manifestLoaded",
240
+ MANIFEST_LOADING_FINISHED: "manifestLoadingFinished",
238
241
  DOWNLOAD_MANIFEST_ERROR_CODE: 25,
239
242
  DOWNLOAD_CONTENT_ERROR_CODE: 27,
240
243
  DOWNLOAD_INIT_SEGMENT_ERROR_CODE: 28,
@@ -421,15 +424,18 @@ function MSEStrategy(mediaSources, windowType, mediaKind, playbackElement, isUHD
421
424
  }
422
425
 
423
426
  function onManifestLoaded(event) {
424
- DebugToolInstance.info(`Manifest loaded. Duration is: ${event.data.mediaPresentationDuration}`);
425
-
426
427
  if (event.data) {
428
+ DebugToolInstance.info(`Manifest loaded. Duration is: ${event.data.mediaPresentationDuration}`);
427
429
  const manifest = event.data;
428
430
  const representationOptions = window.bigscreenPlayer.representationOptions || {};
429
431
 
430
432
  ManifestModifier.filter(manifest, representationOptions);
431
433
  ManifestModifier.generateBaseUrls(manifest, mediaSources.availableSources());
432
434
 
435
+ manifest.manifestRequestTime = manifestRequestTime;
436
+ manifest.manifestLoadCount = manifestLoadCount;
437
+ manifestLoadCount = 0;
438
+
433
439
  emitManifestInfo(manifest);
434
440
  }
435
441
  }
@@ -704,6 +710,12 @@ function MSEStrategy(mediaSources, windowType, mediaKind, playbackElement, isUHD
704
710
  mediaPlayer.on(DashJSEvents.GAP_JUMP, onGapJump);
705
711
  mediaPlayer.on(DashJSEvents.GAP_JUMP_TO_END, onGapJump);
706
712
  mediaPlayer.on(DashJSEvents.QUOTA_EXCEEDED, onQuotaExceeded);
713
+ mediaPlayer.on(DashJSEvents.MANIFEST_LOADING_FINISHED, manifestLoadingFinished);
714
+ }
715
+
716
+ function manifestLoadingFinished(event) {
717
+ manifestLoadCount++;
718
+ manifestRequestTime = event.request.requestEndDate.getTime() - event.request.requestStartDate.getTime();
707
719
  }
708
720
 
709
721
  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.2",
4
4
  "type": "module",
5
5
  "description": "Simplified media playback for bigscreen devices.",
6
6
  "main": "dist/esm/main.js",