bigscreen-player 8.2.2 → 8.2.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-1ade53b5.js → imscsubtitles-1ea8981b.js} +1 -1
- package/dist/esm/{legacysubtitles-c0af01e0.js → legacysubtitles-01c656c7.js} +1 -1
- package/dist/esm/{main-98c741f8.js → main-73f2cc27.js} +18 -13
- package/dist/esm/main.js +1 -1
- package/dist/esm/{msestrategy-9bfd05cd.js → msestrategy-1d2f62f6.js} +1 -1
- 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 DebugToolInstance, P as Plugins, U as Utils, D as DOMHelpers } from './main-
|
|
2
|
+
import { f as findSegmentTemplate, L as LoadUrl, a as DebugToolInstance, P as Plugins, U as Utils, D as DOMHelpers } from './main-73f2cc27.js';
|
|
3
3
|
|
|
4
4
|
const SEGMENTS_BUFFER_SIZE = 3;
|
|
5
5
|
const LOAD_ERROR_COUNT_MAX = 3;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DOMHelpers, a as DebugToolInstance, P as Plugins, L as LoadUrl, T as TransportControlPosition } from './main-
|
|
1
|
+
import { D as DOMHelpers, a as DebugToolInstance, P as Plugins, L as LoadUrl, T as TransportControlPosition } from './main-73f2cc27.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Safely checks if an attribute exists on an element.
|
|
@@ -722,8 +722,6 @@ class DebugViewController {
|
|
|
722
722
|
case EntryCategory.TRACE:
|
|
723
723
|
formattedData = this.serialiseTrace(entry);
|
|
724
724
|
break;
|
|
725
|
-
default:
|
|
726
|
-
throw new TypeError(`Unrecognised Entry Category: ${category}`);
|
|
727
725
|
}
|
|
728
726
|
const sessionTime = new Date(entry.sessionTime);
|
|
729
727
|
const formatedSessionTime = `${formatDate(sessionTime)}.${zeroPadMs(sessionTime.getUTCMilliseconds())}`;
|
|
@@ -738,8 +736,6 @@ class DebugViewController {
|
|
|
738
736
|
return `Info: ${data}`;
|
|
739
737
|
case "warning":
|
|
740
738
|
return `Warning: ${data}`;
|
|
741
|
-
default:
|
|
742
|
-
throw new TypeError(`Unrecognised message level '${kind}'`);
|
|
743
739
|
}
|
|
744
740
|
}
|
|
745
741
|
serialiseTime(time) {
|
|
@@ -750,6 +746,11 @@ class DebugViewController {
|
|
|
750
746
|
var _a;
|
|
751
747
|
const { currentElementTime, kind, data } = trace;
|
|
752
748
|
switch (kind) {
|
|
749
|
+
case "apicall": {
|
|
750
|
+
const { functionName, functionArgs } = data;
|
|
751
|
+
const argsPart = functionArgs.length === 0 ? "" : ` with args [${functionArgs.join(", ")}]`;
|
|
752
|
+
return `Called '${functionName}${argsPart}'`;
|
|
753
|
+
}
|
|
753
754
|
case "buffered-ranges": {
|
|
754
755
|
const buffered = data.buffered.map(([start, end]) => `${start.toFixed(2)} - ${end.toFixed(2)}`).join(", ");
|
|
755
756
|
return `Buffered ${data.kind}: [${buffered}] at current time ${currentElementTime.toFixed(2)}`;
|
|
@@ -760,14 +761,20 @@ class DebugViewController {
|
|
|
760
761
|
const { eventType, eventTarget } = data;
|
|
761
762
|
return `Event: '${eventType}' from ${eventTarget}`;
|
|
762
763
|
}
|
|
764
|
+
case "gap": {
|
|
765
|
+
const { from, to } = data;
|
|
766
|
+
return `Gap from ${from} to ${to}`;
|
|
767
|
+
}
|
|
763
768
|
case "session-start":
|
|
764
769
|
return `Playback session started at ${new Date(data).toISOString().replace("T", " ")}`;
|
|
765
770
|
case "session-end":
|
|
766
771
|
return `Playback session ended at ${new Date(data).toISOString().replace("T", " ")}`;
|
|
772
|
+
case "quota-exceeded": {
|
|
773
|
+
const { bufferLevel, time } = data;
|
|
774
|
+
return `Quota exceeded with buffer level ${bufferLevel} at chunk start time ${time}`;
|
|
775
|
+
}
|
|
767
776
|
case "state-change":
|
|
768
777
|
return `Event: ${invertedMediaState[data]}`;
|
|
769
|
-
default:
|
|
770
|
-
throw new TypeError(`Unrecognised trace kind: ${kind}`);
|
|
771
778
|
}
|
|
772
779
|
}
|
|
773
780
|
serialiseStaticEntry(entry) {
|
|
@@ -808,7 +815,7 @@ class DebugViewController {
|
|
|
808
815
|
const [qualityIndex, bitrate] = data;
|
|
809
816
|
return `${qualityIndex} (${bitrate} kbps)`;
|
|
810
817
|
}
|
|
811
|
-
return data.join("
|
|
818
|
+
return data.join(", ");
|
|
812
819
|
}
|
|
813
820
|
render() {
|
|
814
821
|
DebugView.render({
|
|
@@ -5934,7 +5941,7 @@ BasicStrategy.getLiveSupport = () => LiveSupport.SEEKABLE;
|
|
|
5934
5941
|
function StrategyPicker() {
|
|
5935
5942
|
return new Promise((resolve, reject) => {
|
|
5936
5943
|
if (window.bigscreenPlayer.playbackStrategy === PlaybackStrategy.MSE) {
|
|
5937
|
-
return import('./msestrategy-
|
|
5944
|
+
return import('./msestrategy-1d2f62f6.js')
|
|
5938
5945
|
.then(({ default: MSEStrategy }) => resolve(MSEStrategy))
|
|
5939
5946
|
.catch(() => {
|
|
5940
5947
|
reject({ error: "strategyDynamicLoadError" });
|
|
@@ -6381,7 +6388,7 @@ function CallCallbacks(callbacks, data) {
|
|
|
6381
6388
|
}
|
|
6382
6389
|
}
|
|
6383
6390
|
|
|
6384
|
-
var Version = "8.2.
|
|
6391
|
+
var Version = "8.2.3";
|
|
6385
6392
|
|
|
6386
6393
|
var sourceList;
|
|
6387
6394
|
var source;
|
|
@@ -7732,7 +7739,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
|
|
|
7732
7739
|
|
|
7733
7740
|
if (available()) {
|
|
7734
7741
|
if (useLegacySubs) {
|
|
7735
|
-
import('./legacysubtitles-
|
|
7742
|
+
import('./legacysubtitles-01c656c7.js')
|
|
7736
7743
|
.then(({ default: LegacySubtitles }) => {
|
|
7737
7744
|
subtitlesContainer = LegacySubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
|
|
7738
7745
|
callback(subtitlesEnabled);
|
|
@@ -7741,7 +7748,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
|
|
|
7741
7748
|
Plugins.interface.onSubtitlesDynamicLoadError();
|
|
7742
7749
|
});
|
|
7743
7750
|
} else {
|
|
7744
|
-
import('./imscsubtitles-
|
|
7751
|
+
import('./imscsubtitles-1ea8981b.js')
|
|
7745
7752
|
.then(({ default: IMSCSubtitles }) => {
|
|
7746
7753
|
subtitlesContainer = IMSCSubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
|
|
7747
7754
|
callback(subtitlesEnabled);
|
|
@@ -7863,8 +7870,6 @@ function BigscreenPlayer() {
|
|
|
7863
7870
|
|
|
7864
7871
|
function mediaStateUpdateCallback(evt) {
|
|
7865
7872
|
if (evt.timeUpdate) {
|
|
7866
|
-
DebugToolInstance.updateElementTime(evt.data.currentTime);
|
|
7867
|
-
|
|
7868
7873
|
CallCallbacks(timeUpdateCallbacks, {
|
|
7869
7874
|
currentTime: evt.data.currentTime,
|
|
7870
7875
|
endOfStream,
|
package/dist/esm/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BigscreenPlayer, a as DebugTool, E as EntryCategory, b as LiveSupport, c as MediaKinds, M as MediaState, g as MockBigscreenPlayer, h as PauseTriggers, i as PlaybackStrategy, j as TransferFormat, T as TransportControlPosition, W as WindowTypes, k as isMessage, l as isMetric, m as isTrace } from './main-
|
|
1
|
+
export { B as BigscreenPlayer, a as DebugTool, E as EntryCategory, b as LiveSupport, c as MediaKinds, M as MediaState, g as MockBigscreenPlayer, h as PauseTriggers, i as PlaybackStrategy, j as TransferFormat, T as TransportControlPosition, W as WindowTypes, k as isMessage, l as isMetric, m as isTrace } from './main-73f2cc27.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MediaPlayer } from 'dashjs/index_mediaplayerOnly';
|
|
2
|
-
import { W as WindowTypes, U as Utils, D as DOMHelpers, b as LiveSupport, a as DebugToolInstance, M as MediaState, P as Plugins, c as MediaKinds, d as TimeUtils, e as DynamicWindowUtils } from './main-
|
|
2
|
+
import { W as WindowTypes, U as Utils, D as DOMHelpers, b as LiveSupport, a as DebugToolInstance, M as MediaState, P as Plugins, c as MediaKinds, d as TimeUtils, e as DynamicWindowUtils } from './main-73f2cc27.js';
|
|
3
3
|
|
|
4
4
|
function filter(manifest, representationOptions) {
|
|
5
5
|
const constantFps = representationOptions.constantFps;
|