bigscreen-player 10.5.0 → 10.5.1
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-51232442.js → imscsubtitles-edeb644f.js} +1 -1
- package/dist/esm/{legacysubtitles-6d275496.js → legacysubtitles-50fa1717.js} +1 -1
- package/dist/esm/{main-ab11c548.js → main-5adbc317.js} +4 -4
- package/dist/esm/main.js +1 -1
- package/dist/esm/{msestrategy-5d1b0362.js → msestrategy-036ce46d.js} +16 -7
- 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-5adbc317.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-5adbc317.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-
|
|
5713
|
+
return import('./msestrategy-036ce46d.js')
|
|
5714
5714
|
.then(({ default: MSEStrategy }) => resolve(MSEStrategy))
|
|
5715
5715
|
.catch((reason) => {
|
|
5716
5716
|
const error = new Error(isError(reason) ? reason.message : undefined);
|
|
@@ -6465,7 +6465,7 @@ const PauseTriggers = {
|
|
|
6465
6465
|
DEVICE: 3,
|
|
6466
6466
|
};
|
|
6467
6467
|
|
|
6468
|
-
var Version = "10.5.
|
|
6468
|
+
var Version = "10.5.1";
|
|
6469
6469
|
|
|
6470
6470
|
/* eslint-disable no-use-before-define */
|
|
6471
6471
|
|
|
@@ -7649,7 +7649,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
|
|
|
7649
7649
|
|
|
7650
7650
|
if (available()) {
|
|
7651
7651
|
if (useLegacySubs) {
|
|
7652
|
-
import('./legacysubtitles-
|
|
7652
|
+
import('./legacysubtitles-50fa1717.js')
|
|
7653
7653
|
.then(({ default: LegacySubtitles }) => {
|
|
7654
7654
|
subtitlesContainer = LegacySubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
|
|
7655
7655
|
callback(subtitlesEnabled);
|
|
@@ -7658,7 +7658,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
|
|
|
7658
7658
|
Plugins.interface.onSubtitlesDynamicLoadError();
|
|
7659
7659
|
});
|
|
7660
7660
|
} else {
|
|
7661
|
-
import('./imscsubtitles-
|
|
7661
|
+
import('./imscsubtitles-edeb644f.js')
|
|
7662
7662
|
.then(({ default: IMSCSubtitles }) => {
|
|
7663
7663
|
subtitlesContainer = IMSCSubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
|
|
7664
7664
|
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-5adbc317.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-
|
|
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-5adbc317.js';
|
|
3
3
|
import 'tslib';
|
|
4
4
|
|
|
5
5
|
function filter(manifest, representationOptions) {
|
|
@@ -616,13 +616,16 @@ function MSEStrategy(
|
|
|
616
616
|
function onCurrentTrackChanged(event) {
|
|
617
617
|
if (!isAudioDescribedAvailable()) return
|
|
618
618
|
|
|
619
|
+
audioDescribed.enable = isAudioDescribedEnabled();
|
|
619
620
|
const mediaType = event.newMediaInfo.type;
|
|
621
|
+
|
|
620
622
|
DebugTool.info(
|
|
621
623
|
`${mediaType} track changed.${
|
|
622
|
-
mediaType === "audio" ? (
|
|
624
|
+
mediaType === "audio" ? (audioDescribed.enable ? " Audio Described on." : " Audio Described off.") : ""
|
|
623
625
|
}`
|
|
624
626
|
);
|
|
625
|
-
|
|
627
|
+
|
|
628
|
+
audioDescribed.callback && audioDescribed.callback(audioDescribed.enable);
|
|
626
629
|
}
|
|
627
630
|
|
|
628
631
|
function publishMediaState(mediaState) {
|
|
@@ -694,6 +697,16 @@ function MSEStrategy(
|
|
|
694
697
|
|
|
695
698
|
mediaPlayer.initialize(mediaElement, null);
|
|
696
699
|
|
|
700
|
+
modifySource(presentationTimeInSeconds);
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
function modifySource(presentationTimeInSeconds) {
|
|
704
|
+
if (mediaPlayer.isReady()) {
|
|
705
|
+
// Reset source to apply media settings for the new source
|
|
706
|
+
// dash.js will reset media settings if a new source is attached while its initialised with a source
|
|
707
|
+
mediaPlayer.attachSource(null);
|
|
708
|
+
}
|
|
709
|
+
|
|
697
710
|
mediaPlayer.setInitialMediaSettingsFor(
|
|
698
711
|
"audio",
|
|
699
712
|
audioDescribed.enable
|
|
@@ -706,10 +719,6 @@ function MSEStrategy(
|
|
|
706
719
|
}
|
|
707
720
|
);
|
|
708
721
|
|
|
709
|
-
modifySource(presentationTimeInSeconds);
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
function modifySource(presentationTimeInSeconds) {
|
|
713
722
|
const source = mediaSources.currentSource();
|
|
714
723
|
const anchor = buildSourceAnchor(presentationTimeInSeconds);
|
|
715
724
|
|