bigscreen-player 5.5.1 → 5.5.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 { b as TimeUtils, L as LoadUrl, a as DebugTool, P as Plugins, U as Utils, D as DOMHelpers } from './main-3406c105.js';
2
+ import { b as TimeUtils, L as LoadUrl, a as DebugTool, P as Plugins, U as Utils, D as DOMHelpers } from './main-0a969f9e.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-3406c105.js';
1
+ import { D as DOMHelpers, a as DebugTool, P as Plugins, L as LoadUrl, T as TransportControlPosition } from './main-0a969f9e.js';
2
2
 
3
3
  /**
4
4
  * Safely checks if an attribute exists on an element.
@@ -34,8 +34,8 @@ function PluginData (args) {
34
34
  this.isInitialPlay = args.isInitialPlay;
35
35
  this.cdn = args.cdn;
36
36
  this.newCdn = args.newCdn;
37
- this.timeStamp = new Date(),
38
- this.code = args.code,
37
+ this.timeStamp = new Date();
38
+ this.code = args.code;
39
39
  this.message = args.message;
40
40
  }
41
41
 
@@ -2420,7 +2420,7 @@ function Html5 () {
2420
2420
  }
2421
2421
 
2422
2422
  function onError () {
2423
- reportError('Media element error code: ' + mediaElement.error.code, {code: mediaElement.error.code, message: mediaElement.error.message });
2423
+ reportError('Media element error code: ' + mediaElement.error.code, { code: mediaElement.error.code, message: mediaElement.error.message });
2424
2424
  }
2425
2425
 
2426
2426
  function onSourceError () {
@@ -5454,7 +5454,7 @@ function BasicStrategy (mediaSources, windowType, mediaKind, playbackElement, is
5454
5454
  }
5455
5455
  }
5456
5456
 
5457
- function publishError(mediaError) {
5457
+ function publishError (mediaError) {
5458
5458
  if (errorCallback) {
5459
5459
  errorCallback(mediaError);
5460
5460
  }
@@ -5730,12 +5730,12 @@ function StrategyPicker (windowType, isUHD) {
5730
5730
  return resolve(NativeStrategy)
5731
5731
  }
5732
5732
 
5733
- return import('./msestrategy-5530648b.js').then(({default: MSEStrategy}) => resolve(MSEStrategy))
5733
+ return import('./msestrategy-5a02d016.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-5530648b.js').then(({default: MSEStrategy}) => resolve(MSEStrategy))
5738
+ return import('./msestrategy-5a02d016.js').then(({default: MSEStrategy}) => resolve(MSEStrategy))
5739
5739
  .catch(() => {
5740
5740
  reject({error: 'strategyDynamicLoadError'});
5741
5741
  })
@@ -6045,10 +6045,10 @@ function PlayerComponent (playbackElement, bigscreenPlayerData, mediaSources, wi
6045
6045
  duration: getDuration()
6046
6046
  },
6047
6047
  timeUpdate: opts && opts.timeUpdate,
6048
- isBufferingTimeoutError: (opts && opts.isBufferingTimeoutError || false),
6048
+ isBufferingTimeoutError: (opts && opts.isBufferingTimeoutError || false)
6049
6049
  };
6050
6050
 
6051
- if(opts && opts.code > -1 && opts.message ) {
6051
+ if (opts && opts.code > -1 && opts.message) {
6052
6052
  stateUpdateData.code = opts.code;
6053
6053
  stateUpdateData.message = opts.message;
6054
6054
  }
@@ -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.1";
6130
+ var version = "5.5.2";
6131
6131
 
6132
6132
  var sourceList;
6133
6133
  var source;
@@ -7028,7 +7028,7 @@ function MediaSources () {
7028
7028
  };
7029
7029
 
7030
7030
  const onManifestLoadError = () => {
7031
- failover(load, failoverError, {isBufferingTimeoutError: false, code: PluginEnums.ERROR_CODES.MANIFEST, message: PluginEnums.ERROR_MESSAGES.MANIFEST });
7031
+ failover(load, failoverError, { isBufferingTimeoutError: false, code: PluginEnums.ERROR_CODES.MANIFEST, message: PluginEnums.ERROR_MESSAGES.MANIFEST });
7032
7032
  };
7033
7033
 
7034
7034
  function load () {
@@ -7307,14 +7307,14 @@ function Subtitles (mediaPlayer, autoStart, playbackElement, defaultStyleOpts, m
7307
7307
  let subtitlesContainer;
7308
7308
 
7309
7309
  if (useLegacySubs) {
7310
- import('./legacysubtitles-88ab9582.js').then(({default: LegacySubtitles}) => {
7310
+ import('./legacysubtitles-e57b714b.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-05792f1d.js').then(({default: IMSCSubtitles}) => {
7317
+ import('./imscsubtitles-77b97c49.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-3406c105.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-0a969f9e.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-3406c105.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-0a969f9e.js';
2
2
  import { MediaPlayer } from 'dashjs/index_mediaplayerOnly';
3
3
 
4
4
  function filter (manifest, representationOptions) {
@@ -245,7 +245,7 @@ function MSEStrategy (mediaSources, windowType, mediaKind, playbackElement, isUH
245
245
  }
246
246
 
247
247
  // It is possible audio could play back even if the video codec is not supported. Resetting here prevents this.
248
- if(event.error.code === DashJSEvents.UNSUPPORTED_CODEC) {
248
+ if (event.error.code === DashJSEvents.UNSUPPORTED_CODEC) {
249
249
  mediaPlayer.reset();
250
250
  }
251
251
  }
@@ -370,7 +370,6 @@ function MSEStrategy (mediaSources, windowType, mediaKind, playbackElement, isUH
370
370
 
371
371
  failoverInfo.serviceLocation = event.baseUrl.serviceLocation;
372
372
  mediaSources.failover(log, log, failoverInfo);
373
-
374
373
  }
375
374
 
376
375
  function onServiceLocationAvailable (event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigscreen-player",
3
- "version": "5.5.1",
3
+ "version": "5.5.2",
4
4
  "description": "Simplified media playback for bigscreen devices.",
5
5
  "main": "dist/esm/main.js",
6
6
  "browser": "dist/esm/main.js",