bigscreen-player 10.6.0 → 10.6.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 { U as Utils, a as DebugTool, P as Plugins, D as DOMHelpers } from './main-131c2f25.js';
2
+ import { U as Utils, a as DebugTool, P as Plugins, D as DOMHelpers } from './main-992e9af5.js';
3
3
  import 'tslib';
4
4
 
5
5
  function EmbeddedSubtitles(mediaPlayer, autoStart, parentElement, _mediaSources, defaultStyleOpts) {
@@ -1,5 +1,5 @@
1
1
  import { fromXML, generateISD, renderHTML } from 'smp-imsc';
2
- import { f as findSegmentTemplate, L as LoadUrl, a as DebugTool, P as Plugins, U as Utils, D as DOMHelpers } from './main-131c2f25.js';
2
+ import { f as findSegmentTemplate, L as LoadUrl, a as DebugTool, P as Plugins, U as Utils, D as DOMHelpers } from './main-992e9af5.js';
3
3
  import 'tslib';
4
4
 
5
5
  const SEGMENTS_BUFFER_SIZE = 3;
@@ -1,4 +1,4 @@
1
- import { D as DOMHelpers, a as DebugTool, P as Plugins, L as LoadUrl, T as TransportControlPosition } from './main-131c2f25.js';
1
+ import { D as DOMHelpers, a as DebugTool, P as Plugins, L as LoadUrl, T as TransportControlPosition } from './main-992e9af5.js';
2
2
  import 'tslib';
3
3
 
4
4
  /**
@@ -5710,7 +5710,7 @@ BasicStrategy.getLiveSupport = () => LiveSupport.SEEKABLE;
5710
5710
  function StrategyPicker() {
5711
5711
  return new Promise((resolve, reject) => {
5712
5712
  if (window.bigscreenPlayer.playbackStrategy === PlaybackStrategy.MSE) {
5713
- return import('./msestrategy-9a85e747.js')
5713
+ return import('./msestrategy-e5f0c606.js')
5714
5714
  .then(({ default: MSEStrategy }) => resolve(MSEStrategy))
5715
5715
  .catch((reason) => {
5716
5716
  const error = new Error(isError(reason) ? reason.message : undefined);
@@ -6487,7 +6487,7 @@ const PauseTriggers = {
6487
6487
  DEVICE: 3,
6488
6488
  };
6489
6489
 
6490
- var Version = "10.6.0";
6490
+ var Version = "10.6.2";
6491
6491
 
6492
6492
  /* eslint-disable no-use-before-define */
6493
6493
 
@@ -7673,7 +7673,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
7673
7673
 
7674
7674
  if (available()) {
7675
7675
  if (useLegacySubs) {
7676
- import('./legacysubtitles-b9bb8bbf.js')
7676
+ import('./legacysubtitles-27e237da.js')
7677
7677
  .then(({ default: LegacySubtitles }) => {
7678
7678
  subtitlesContainer = LegacySubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
7679
7679
  callback(subtitlesEnabled);
@@ -7682,7 +7682,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
7682
7682
  Plugins.interface.onSubtitlesDynamicLoadError();
7683
7683
  });
7684
7684
  } else if (embeddedSubs) {
7685
- import('./embeddedsubtitles-ac97f821.js')
7685
+ import('./embeddedsubtitles-9b7f7ed5.js')
7686
7686
  .then(({ default: EmbeddedSubtitles }) => {
7687
7687
  subtitlesContainer = EmbeddedSubtitles(
7688
7688
  mediaPlayer,
@@ -7697,7 +7697,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
7697
7697
  Plugins.interface.onSubtitlesDynamicLoadError();
7698
7698
  });
7699
7699
  } else {
7700
- import('./imscsubtitles-db19e99f.js')
7700
+ import('./imscsubtitles-43a212f9.js')
7701
7701
  .then(({ default: IMSCSubtitles }) => {
7702
7702
  subtitlesContainer = IMSCSubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
7703
7703
  callback(subtitlesEnabled);
@@ -7909,7 +7909,7 @@ function BigscreenPlayer() {
7909
7909
  mediaSources.time().manifestType,
7910
7910
  PlayerComponent.getLiveSupport(),
7911
7911
  () => {
7912
- _callbacks.playerReady();
7912
+ _callbacks.playerReady && _callbacks.playerReady();
7913
7913
  subtitles = Subtitles(
7914
7914
  playerComponent,
7915
7915
  enableSubtitles,
package/dist/esm/main.js CHANGED
@@ -1,2 +1,2 @@
1
- export { B as BigscreenPlayer, a as DebugTool, E as EntryCategory, b as LiveSupport, c as ManifestType, M as MediaKinds, d as MediaState, g as MockBigscreenPlayer, h as PauseTriggers, i as PlaybackStrategy, k as Timeline, j as TransferFormat, T as TransportControlPosition, W as WindowTypes, l as isMessage, m as isMetric, n as isTrace } from './main-131c2f25.js';
1
+ export { B as BigscreenPlayer, a as DebugTool, E as EntryCategory, b as LiveSupport, c as ManifestType, M as MediaKinds, d as MediaState, g as MockBigscreenPlayer, h as PauseTriggers, i as PlaybackStrategy, k as Timeline, j as TransferFormat, T as TransportControlPosition, W as WindowTypes, l as isMessage, m as isMetric, n as isTrace } from './main-992e9af5.js';
2
2
  import 'tslib';
@@ -1,5 +1,5 @@
1
1
  import { MediaPlayer } from 'dashjs/index';
2
- import { U as Utils, M as MediaKinds, b as LiveSupport, a as DebugTool, c as ManifestType, d as MediaState, P as Plugins, e as autoResumeAtStartOfRange, D as DOMHelpers } from './main-131c2f25.js';
2
+ import { U as Utils, M as MediaKinds, b as LiveSupport, a as DebugTool, c as ManifestType, d as MediaState, P as Plugins, e as autoResumeAtStartOfRange, D as DOMHelpers } from './main-992e9af5.js';
3
3
  import 'tslib';
4
4
 
5
5
  function filter(manifest, representationOptions) {
@@ -833,7 +833,17 @@ function MSEStrategy(
833
833
  }
834
834
 
835
835
  function customiseSubtitles(options) {
836
- return mediaPlayer && mediaPlayer.updateSettings({ streaming: { text: { imsc: { options } } } })
836
+ return (
837
+ mediaPlayer &&
838
+ options &&
839
+ mediaPlayer.updateSettings({
840
+ streaming: {
841
+ text: {
842
+ imsc: { options },
843
+ },
844
+ },
845
+ })
846
+ )
837
847
  }
838
848
 
839
849
  function getDuration() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bigscreen-player",
3
- "version": "10.6.0",
3
+ "version": "10.6.2",
4
4
  "type": "module",
5
5
  "description": "Simplified media playback for bigscreen devices.",
6
6
  "main": "dist/esm/main.js",