bigscreen-player 5.5.4 → 5.5.5

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 { b as TimeUtils, L as LoadUrl, a as DebugTool, P as Plugins, U as Utils, D as DOMHelpers } from './main-1c53ece9.js';
2
+ import { b as TimeUtils, L as LoadUrl, a as DebugTool, P as Plugins, U as Utils, D as DOMHelpers } from './main-a33ffb0e.js';
3
3
 
4
4
  function IMSCSubtitles (mediaPlayer, autoStart, parentElement, mediaSources, defaultStyleOpts) {
5
5
  const SEGMENTS_TO_KEEP = 3;
@@ -1,4 +1,4 @@
1
- import { D as DOMHelpers, a as DebugTool, P as Plugins, L as LoadUrl, T as TransportControlPosition } from './main-1c53ece9.js';
1
+ import { D as DOMHelpers, a as DebugTool, P as Plugins, L as LoadUrl, T as TransportControlPosition } from './main-a33ffb0e.js';
2
2
 
3
3
  /**
4
4
  * Safely checks if an attribute exists on an element.
@@ -5730,12 +5730,12 @@ function StrategyPicker (windowType, isUHD) {
5730
5730
  return resolve(NativeStrategy)
5731
5731
  }
5732
5732
 
5733
- return import('./msestrategy-0e7fdc92.js').then(({default: MSEStrategy}) => resolve(MSEStrategy))
5733
+ return import('./msestrategy-2e57f33d.js').then(({default: MSEStrategy}) => resolve(MSEStrategy))
5734
5734
  .catch(() => {
5735
5735
  reject({error: 'strategyDynamicLoadError'});
5736
5736
  })
5737
5737
  } else if (window.bigscreenPlayer.playbackStrategy === PlaybackStrategy.MSE) {
5738
- return import('./msestrategy-0e7fdc92.js').then(({default: MSEStrategy}) => resolve(MSEStrategy))
5738
+ return import('./msestrategy-2e57f33d.js').then(({default: MSEStrategy}) => resolve(MSEStrategy))
5739
5739
  .catch(() => {
5740
5740
  reject({error: 'strategyDynamicLoadError'});
5741
5741
  })
@@ -6127,7 +6127,7 @@ function CallCallbacks (callbacks, data) {
6127
6127
  callbacks.forEach((callback) => DeferExceptions(() => callback(data)));
6128
6128
  }
6129
6129
 
6130
- var version = "5.5.4";
6130
+ var version = "5.5.5";
6131
6131
 
6132
6132
  var sourceList;
6133
6133
  var source;
@@ -6720,7 +6720,7 @@ var ManifestParser = {
6720
6720
  parse: parse
6721
6721
  };
6722
6722
 
6723
- function LoadUrl (url, opts) {
6723
+ function LoadUrl(url, opts) {
6724
6724
  const xhr = new XMLHttpRequest();
6725
6725
 
6726
6726
  if (opts.timeout) {
@@ -6734,13 +6734,13 @@ function LoadUrl (url, opts) {
6734
6734
  xhr.onreadystatechange = () => {
6735
6735
  if (xhr.readyState === 4) {
6736
6736
  xhr.onreadystatechange = null;
6737
- if (xhr.status >= 200 && xhr.status < 300) {
6737
+ if (xhr.status === 0 || (xhr.status >= 200 && xhr.status < 300)) {
6738
6738
  if (opts.onLoad) {
6739
6739
  opts.onLoad(xhr.responseXML, xhr.responseText, xhr.status);
6740
6740
  }
6741
6741
  } else {
6742
6742
  if (opts.onError) {
6743
- opts.onError({errorType: 'NON_200_ERROR', statusCode: xhr.status});
6743
+ opts.onError({ errorType: 'NON_200_ERROR', statusCode: xhr.status });
6744
6744
  }
6745
6745
  }
6746
6746
  }
@@ -6759,7 +6759,7 @@ function LoadUrl (url, opts) {
6759
6759
  xhr.send(opts.data || null);
6760
6760
  } catch ({ name }) {
6761
6761
  if (opts.onError) {
6762
- opts.onError({errorType: name, statusCode: xhr.status});
6762
+ opts.onError({ errorType: name, statusCode: xhr.status });
6763
6763
  }
6764
6764
  }
6765
6765
  }
@@ -7307,14 +7307,14 @@ function Subtitles (mediaPlayer, autoStart, playbackElement, defaultStyleOpts, m
7307
7307
  let subtitlesContainer;
7308
7308
 
7309
7309
  if (useLegacySubs) {
7310
- import('./legacysubtitles-407d0e3c.js').then(({default: LegacySubtitles}) => {
7310
+ import('./legacysubtitles-9ed56a90.js').then(({default: LegacySubtitles}) => {
7311
7311
  subtitlesContainer = LegacySubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
7312
7312
  callback(subtitlesEnabled);
7313
7313
  }).catch(() => {
7314
7314
  Plugins.interface.onSubtitlesDynamicLoadError();
7315
7315
  });
7316
7316
  } else {
7317
- import('./imscsubtitles-cefabced.js').then(({default: IMSCSubtitles}) => {
7317
+ import('./imscsubtitles-6f595ac5.js').then(({default: IMSCSubtitles}) => {
7318
7318
  subtitlesContainer = IMSCSubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
7319
7319
  callback(subtitlesEnabled);
7320
7320
  }).catch(() => {
package/dist/esm/main.js CHANGED
@@ -1 +1 @@
1
- export { B as BigscreenPlayer, c as LiveSupport, d as MediaKinds, M as MediaState, f as MockBigscreenPlayer, g as PauseTriggers, h as PlaybackStrategy, i as TransferFormat, T as TransportControlPosition, W as WindowTypes } from './main-1c53ece9.js';
1
+ export { B as BigscreenPlayer, c as LiveSupport, d as MediaKinds, M as MediaState, f as MockBigscreenPlayer, g as PauseTriggers, h as PlaybackStrategy, i as TransferFormat, T as TransportControlPosition, W as WindowTypes } from './main-a33ffb0e.js';
@@ -1,4 +1,4 @@
1
- import { U as Utils, D as DOMHelpers, W as WindowTypes, c as LiveSupport, M as MediaState, a as DebugTool, P as Plugins, d as MediaKinds, b as TimeUtils, e as DynamicWindowUtils } from './main-1c53ece9.js';
1
+ import { U as Utils, D as DOMHelpers, W as WindowTypes, c as LiveSupport, M as MediaState, a as DebugTool, P as Plugins, d as MediaKinds, b as TimeUtils, e as DynamicWindowUtils } from './main-a33ffb0e.js';
2
2
  import { MediaPlayer } from 'dashjs/index_mediaplayerOnly';
3
3
 
4
4
  function filter (manifest, representationOptions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigscreen-player",
3
- "version": "5.5.4",
3
+ "version": "5.5.5",
4
4
  "description": "Simplified media playback for bigscreen devices.",
5
5
  "main": "dist/esm/main.js",
6
6
  "browser": "dist/esm/main.js",