bigscreen-player 10.13.0 → 10.14.0
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/{embeddedsubtitles-778e2ed7.js → embeddedsubtitles-236add87.js} +1 -1
- package/dist/esm/{imscsubtitles-2cdb9565.js → imscsubtitles-bce3be31.js} +1 -1
- package/dist/esm/{legacysubtitles-48e37e78.js → legacysubtitles-7ffcf645.js} +1 -1
- package/dist/esm/{main-3b38d339.js → main-549c287c.js} +9 -8
- package/dist/esm/main.js +1 -1
- package/dist/esm/{msestrategy-79f90aba.js → msestrategy-8433ea6e.js} +18 -2
- package/package.json +1 -1
|
@@ -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-
|
|
2
|
+
import { U as Utils, a as DebugTool, P as Plugins, D as DOMHelpers } from './main-549c287c.js';
|
|
3
3
|
import 'tslib';
|
|
4
4
|
|
|
5
5
|
function EmbeddedSubtitles(mediaPlayer, parentElement, { autoStart = false, 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-
|
|
2
|
+
import { f as findSegmentTemplate, L as LoadUrl, a as DebugTool, P as Plugins, U as Utils, D as DOMHelpers } from './main-549c287c.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-549c287c.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-8433ea6e.js')
|
|
5714
5714
|
.then(({ default: MSEStrategy }) => resolve(MSEStrategy))
|
|
5715
5715
|
.catch((reason) => {
|
|
5716
5716
|
const error = new Error(isError(reason) ? reason.message : undefined);
|
|
@@ -6085,7 +6085,8 @@ function PlayerComponent(
|
|
|
6085
6085
|
{
|
|
6086
6086
|
enable: bigscreenPlayerData.enableAudioDescribed,
|
|
6087
6087
|
callback: audioDescribedCallback,
|
|
6088
|
-
}
|
|
6088
|
+
},
|
|
6089
|
+
bigscreenPlayerData?.debug
|
|
6089
6090
|
);
|
|
6090
6091
|
|
|
6091
6092
|
playbackStrategy.addEventCallback(this, eventCallback);
|
|
@@ -6508,7 +6509,7 @@ const PauseTriggers = {
|
|
|
6508
6509
|
DEVICE: 3,
|
|
6509
6510
|
};
|
|
6510
6511
|
|
|
6511
|
-
var Version = "10.
|
|
6512
|
+
var Version = "10.14.0";
|
|
6512
6513
|
|
|
6513
6514
|
/* eslint-disable no-use-before-define */
|
|
6514
6515
|
|
|
@@ -7700,7 +7701,7 @@ function Subtitles(
|
|
|
7700
7701
|
|
|
7701
7702
|
if (available()) {
|
|
7702
7703
|
if (useLegacySubs) {
|
|
7703
|
-
import('./legacysubtitles-
|
|
7704
|
+
import('./legacysubtitles-7ffcf645.js')
|
|
7704
7705
|
.then(({ default: LegacySubtitles }) => {
|
|
7705
7706
|
subtitlesContainer = LegacySubtitles(mediaPlayer, playbackElement, mediaSources, {
|
|
7706
7707
|
alwaysOnTop,
|
|
@@ -7714,7 +7715,7 @@ function Subtitles(
|
|
|
7714
7715
|
Plugins.interface.onSubtitlesDynamicLoadError();
|
|
7715
7716
|
});
|
|
7716
7717
|
} else if (embeddedSubs) {
|
|
7717
|
-
import('./embeddedsubtitles-
|
|
7718
|
+
import('./embeddedsubtitles-236add87.js')
|
|
7718
7719
|
.then(({ default: EmbeddedSubtitles }) => {
|
|
7719
7720
|
subtitlesContainer = EmbeddedSubtitles(mediaPlayer, playbackElement, {
|
|
7720
7721
|
autoStart,
|
|
@@ -7727,7 +7728,7 @@ function Subtitles(
|
|
|
7727
7728
|
Plugins.interface.onSubtitlesDynamicLoadError();
|
|
7728
7729
|
});
|
|
7729
7730
|
} else {
|
|
7730
|
-
import('./imscsubtitles-
|
|
7731
|
+
import('./imscsubtitles-bce3be31.js')
|
|
7731
7732
|
.then(({ default: IMSCSubtitles }) => {
|
|
7732
7733
|
subtitlesContainer = IMSCSubtitles(mediaPlayer, playbackElement, mediaSources, {
|
|
7733
7734
|
alwaysOnTop,
|
|
@@ -7943,7 +7944,7 @@ function BigscreenPlayer() {
|
|
|
7943
7944
|
}
|
|
7944
7945
|
}
|
|
7945
7946
|
|
|
7946
|
-
function bigscreenPlayerDataLoaded({ media, enableSubtitles, subtitlesAlwaysOnTop, enableAudioDescribed }) {
|
|
7947
|
+
function bigscreenPlayerDataLoaded({ media, enableSubtitles, subtitlesAlwaysOnTop, enableAudioDescribed, debug }) {
|
|
7947
7948
|
abortSignal.throwIfAborted(AbortStages.DATA_LOADED);
|
|
7948
7949
|
|
|
7949
7950
|
const initialPresentationTime =
|
|
@@ -7956,7 +7957,7 @@ function BigscreenPlayer() {
|
|
|
7956
7957
|
|
|
7957
7958
|
playerComponent = PlayerComponent(
|
|
7958
7959
|
playbackElement,
|
|
7959
|
-
{ media, enableAudioDescribed, initialPlaybackTime: initialPresentationTime },
|
|
7960
|
+
{ media, enableAudioDescribed, initialPlaybackTime: initialPresentationTime, debug },
|
|
7960
7961
|
mediaSources,
|
|
7961
7962
|
mediaStateUpdateCallback,
|
|
7962
7963
|
_callbacks.playerError,
|
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-549c287c.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, P as Plugins, d as MediaState, 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, P as Plugins, d as MediaState, e as autoResumeAtStartOfRange, D as DOMHelpers } from './main-549c287c.js';
|
|
3
3
|
import 'tslib';
|
|
4
4
|
|
|
5
5
|
function filter(manifest, representationOptions) {
|
|
@@ -130,7 +130,8 @@ function MSEStrategy(
|
|
|
130
130
|
playbackElement,
|
|
131
131
|
_isUHD = false,
|
|
132
132
|
customPlayerSettings = {},
|
|
133
|
-
audioDescribedOpts = {}
|
|
133
|
+
audioDescribedOpts = {},
|
|
134
|
+
debugSettings = {}
|
|
134
135
|
) {
|
|
135
136
|
const audioDescribed = { callback: undefined, enable: false, ...audioDescribedOpts };
|
|
136
137
|
|
|
@@ -222,6 +223,7 @@ function MSEStrategy(
|
|
|
222
223
|
METRIC_CHANGED: "metricChanged",
|
|
223
224
|
STREAM_INITIALIZED: "streamInitialized",
|
|
224
225
|
FRAGMENT_CONTENT_LENGTH_MISMATCH: "fragmentContentLengthMismatch",
|
|
226
|
+
FRAGMENT_LOADED: "fragmentLoadingCompleted",
|
|
225
227
|
QUOTA_EXCEEDED: "quotaExceeded",
|
|
226
228
|
TEXT_TRACKS_ADDED: "allTextTracksAdded",
|
|
227
229
|
CURRENT_TRACK_CHANGED: "currentTrackChanged",
|
|
@@ -632,6 +634,19 @@ function MSEStrategy(
|
|
|
632
634
|
}
|
|
633
635
|
}
|
|
634
636
|
|
|
637
|
+
function onFragmentLoaded() {
|
|
638
|
+
if (debugSettings?.fragmentResponseHeaders) {
|
|
639
|
+
debugSettings.fragmentResponseHeaders.forEach((responseHeader) => {
|
|
640
|
+
const responseHeaderValue = mediaPlayer
|
|
641
|
+
.getDashMetrics()
|
|
642
|
+
.getLatestFragmentRequestHeaderValueByID("video", responseHeader);
|
|
643
|
+
if (responseHeaderValue) {
|
|
644
|
+
DebugTool.staticMetric(responseHeader.toLowerCase(), responseHeaderValue);
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
|
|
635
650
|
function onFragmentContentLengthMismatch(event) {
|
|
636
651
|
DebugTool.info(`Fragment Content Length Mismatch: ${event.responseUrl} (${event.mediaType})`);
|
|
637
652
|
DebugTool.info(`Header Length ${event.headerLength}`);
|
|
@@ -813,6 +828,7 @@ function MSEStrategy(
|
|
|
813
828
|
mediaPlayer.on(DashJSEvents.SERVICE_LOCATION_AVAILABLE, onServiceLocationAvailable);
|
|
814
829
|
mediaPlayer.on(DashJSEvents.URL_RESOLUTION_FAILED, onURLResolutionFailed);
|
|
815
830
|
mediaPlayer.on(DashJSEvents.FRAGMENT_CONTENT_LENGTH_MISMATCH, onFragmentContentLengthMismatch);
|
|
831
|
+
mediaPlayer.on(DashJSEvents.FRAGMENT_LOADED, onFragmentLoaded);
|
|
816
832
|
mediaPlayer.on(DashJSEvents.GAP_JUMP, onGapJump);
|
|
817
833
|
mediaPlayer.on(DashJSEvents.GAP_JUMP_TO_END, onGapJump);
|
|
818
834
|
mediaPlayer.on(DashJSEvents.QUOTA_EXCEEDED, onQuotaExceeded);
|