bigscreen-player 10.0.1 → 10.0.3
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.
- package/dist/esm/{imscsubtitles-af1188d9.js → imscsubtitles-607796f6.js} +1 -1
- package/dist/esm/{legacysubtitles-9210763f.js → legacysubtitles-83aab2c9.js} +1 -1
- package/dist/esm/{main-6a0c73d5.js → main-0a2beb02.js} +5 -5
- package/dist/esm/main.js +1 -1
- package/dist/esm/{msestrategy-e0bd5545.js → msestrategy-33c4b839.js} +9 -5
- package/package.json +1 -1
|
@@ -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-
|
|
2
|
+
import { f as findSegmentTemplate, L as LoadUrl, a as DebugTool, P as Plugins, U as Utils, D as DOMHelpers } from './main-0a2beb02.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-
|
|
1
|
+
import { D as DOMHelpers, a as DebugTool, P as Plugins, L as LoadUrl, T as TransportControlPosition } from './main-0a2beb02.js';
|
|
2
2
|
import 'tslib';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -5637,7 +5637,7 @@ BasicStrategy.getLiveSupport = () => LiveSupport.SEEKABLE;
|
|
|
5637
5637
|
function StrategyPicker() {
|
|
5638
5638
|
return new Promise((resolve, reject) => {
|
|
5639
5639
|
if (window.bigscreenPlayer.playbackStrategy === PlaybackStrategy.MSE) {
|
|
5640
|
-
return import('./msestrategy-
|
|
5640
|
+
return import('./msestrategy-33c4b839.js')
|
|
5641
5641
|
.then(({ default: MSEStrategy }) => resolve(MSEStrategy))
|
|
5642
5642
|
.catch((reason) => {
|
|
5643
5643
|
const error = new Error(isError(reason) ? reason.message : undefined);
|
|
@@ -6392,7 +6392,7 @@ const PauseTriggers = {
|
|
|
6392
6392
|
DEVICE: 3,
|
|
6393
6393
|
};
|
|
6394
6394
|
|
|
6395
|
-
var Version = "10.0.
|
|
6395
|
+
var Version = "10.0.3";
|
|
6396
6396
|
|
|
6397
6397
|
/* eslint-disable no-use-before-define */
|
|
6398
6398
|
|
|
@@ -6712,7 +6712,7 @@ const mockFunctions = {
|
|
|
6712
6712
|
},
|
|
6713
6713
|
customiseSubtitles() {},
|
|
6714
6714
|
renderSubtitleExample() {},
|
|
6715
|
-
|
|
6715
|
+
setAudioDescribed(value) {
|
|
6716
6716
|
audioDescribedEnabled = value;
|
|
6717
6717
|
},
|
|
6718
6718
|
isAudioDescribedEnabled() {
|
|
@@ -7570,7 +7570,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
|
|
|
7570
7570
|
|
|
7571
7571
|
if (available()) {
|
|
7572
7572
|
if (useLegacySubs) {
|
|
7573
|
-
import('./legacysubtitles-
|
|
7573
|
+
import('./legacysubtitles-83aab2c9.js')
|
|
7574
7574
|
.then(({ default: LegacySubtitles }) => {
|
|
7575
7575
|
subtitlesContainer = LegacySubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
|
|
7576
7576
|
callback(subtitlesEnabled);
|
|
@@ -7579,7 +7579,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
|
|
|
7579
7579
|
Plugins.interface.onSubtitlesDynamicLoadError();
|
|
7580
7580
|
});
|
|
7581
7581
|
} else {
|
|
7582
|
-
import('./imscsubtitles-
|
|
7582
|
+
import('./imscsubtitles-607796f6.js')
|
|
7583
7583
|
.then(({ default: IMSCSubtitles }) => {
|
|
7584
7584
|
subtitlesContainer = IMSCSubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
|
|
7585
7585
|
callback(subtitlesEnabled);
|
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-
|
|
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-0a2beb02.js';
|
|
2
2
|
import 'tslib';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MediaPlayer } from 'dashjs/index_mediaplayerOnly';
|
|
2
|
-
import { U as Utils, b as LiveSupport, M as MediaKinds, a as DebugTool, c as ManifestType, d as MediaState, P as Plugins, e as autoResumeAtStartOfRange, D as DOMHelpers } from './main-
|
|
2
|
+
import { U as Utils, b as LiveSupport, M as MediaKinds, a as DebugTool, c as ManifestType, d as MediaState, P as Plugins, e as autoResumeAtStartOfRange, D as DOMHelpers } from './main-0a2beb02.js';
|
|
3
3
|
import 'tslib';
|
|
4
4
|
|
|
5
5
|
function filter(manifest, representationOptions) {
|
|
@@ -597,7 +597,9 @@ function MSEStrategy(
|
|
|
597
597
|
if (mediaPlayer) {
|
|
598
598
|
modifySource(cached.currentTime);
|
|
599
599
|
} else {
|
|
600
|
-
|
|
600
|
+
if (typeof presentationTimeInSeconds === "number" && isFinite(presentationTimeInSeconds)) {
|
|
601
|
+
cached.currentTime = presentationTimeInSeconds;
|
|
602
|
+
}
|
|
601
603
|
setUpMediaElement(playbackElement);
|
|
602
604
|
setUpMediaPlayer(presentationTimeInSeconds);
|
|
603
605
|
setUpMediaListeners();
|
|
@@ -736,7 +738,7 @@ function MSEStrategy(
|
|
|
736
738
|
const duration = mediaPlayer && mediaPlayer.isReady() && mediaPlayer.duration();
|
|
737
739
|
|
|
738
740
|
// If duration is a number, return that, else return cached value (default 0)
|
|
739
|
-
if (typeof duration === "number" &&
|
|
741
|
+
if (typeof duration === "number" && isFinite(duration)) {
|
|
740
742
|
cached.duration = duration;
|
|
741
743
|
return duration
|
|
742
744
|
}
|
|
@@ -746,7 +748,7 @@ function MSEStrategy(
|
|
|
746
748
|
function getCurrentTime() {
|
|
747
749
|
const currentTime = mediaElement?.currentTime;
|
|
748
750
|
|
|
749
|
-
if (currentTime &&
|
|
751
|
+
if (typeof currentTime === "number" && isFinite(currentTime)) {
|
|
750
752
|
cached.currentTime = currentTime;
|
|
751
753
|
return currentTime
|
|
752
754
|
}
|
|
@@ -754,7 +756,9 @@ function MSEStrategy(
|
|
|
754
756
|
}
|
|
755
757
|
|
|
756
758
|
function refreshManifestBeforeSeek(presentationTimeInSeconds) {
|
|
757
|
-
|
|
759
|
+
if (typeof presentationTimeInSeconds === "number" && isFinite(presentationTimeInSeconds)) {
|
|
760
|
+
cached.currentTime = presentationTimeInSeconds;
|
|
761
|
+
}
|
|
758
762
|
|
|
759
763
|
mediaPlayer.refreshManifest((manifest) => {
|
|
760
764
|
const mediaPresentationDuration = manifest?.mediaPresentationDuration;
|