bigscreen-player 8.2.4 → 8.2.6
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-eb0982a5.js → imscsubtitles-cff29202.js} +1 -1
- package/dist/esm/{legacysubtitles-50fe640e.js → legacysubtitles-e768c12f.js} +1 -1
- package/dist/esm/{main-9f5984e2.js → main-31038ecf.js} +19 -13
- package/dist/esm/main.js +1 -1
- package/dist/esm/{msestrategy-d0523552.js → msestrategy-38ff6928.js} +1 -1
- package/package.json +2 -2
|
@@ -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-31038ecf.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-31038ecf.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Safely checks if an attribute exists on an element.
|
|
@@ -1079,14 +1079,14 @@ function LegacyPlayerAdapter(mediaSources, windowType, playbackElement, isUHD, p
|
|
|
1079
1079
|
|
|
1080
1080
|
function eventHandler(event) {
|
|
1081
1081
|
const handleEvent = {
|
|
1082
|
-
playing: onPlaying,
|
|
1083
|
-
paused: onPaused,
|
|
1084
|
-
buffering: onBuffering,
|
|
1082
|
+
"playing": onPlaying,
|
|
1083
|
+
"paused": onPaused,
|
|
1084
|
+
"buffering": onBuffering,
|
|
1085
1085
|
"seek-attempted": onSeekAttempted,
|
|
1086
1086
|
"seek-finished": onSeekFinished,
|
|
1087
|
-
status: onTimeUpdate,
|
|
1088
|
-
complete: onEnded,
|
|
1089
|
-
error: onError,
|
|
1087
|
+
"status": onTimeUpdate,
|
|
1088
|
+
"complete": onEnded,
|
|
1089
|
+
"error": onError,
|
|
1090
1090
|
};
|
|
1091
1091
|
|
|
1092
1092
|
if (handleEvent.hasOwnProperty(event.type)) {
|
|
@@ -1285,13 +1285,10 @@ function LegacyPlayerAdapter(mediaSources, windowType, playbackElement, isUHD, p
|
|
|
1285
1285
|
|
|
1286
1286
|
if (!isPlaybackFromLivePoint && typeof mediaPlayer.beginPlaybackFrom === "function") {
|
|
1287
1287
|
currentTime = startTime;
|
|
1288
|
-
DebugToolInstance.dynamicMetric("initial-playback-time", startTime + timeCorrection);
|
|
1289
1288
|
mediaPlayer.beginPlaybackFrom(startTime + timeCorrection || 0);
|
|
1290
1289
|
} else {
|
|
1291
1290
|
mediaPlayer.beginPlayback();
|
|
1292
1291
|
}
|
|
1293
|
-
|
|
1294
|
-
DebugToolInstance.staticMetric("strategy", getStrategy());
|
|
1295
1292
|
},
|
|
1296
1293
|
play: () => {
|
|
1297
1294
|
isPaused = false;
|
|
@@ -5940,7 +5937,7 @@ BasicStrategy.getLiveSupport = () => LiveSupport.SEEKABLE;
|
|
|
5940
5937
|
function StrategyPicker() {
|
|
5941
5938
|
return new Promise((resolve, reject) => {
|
|
5942
5939
|
if (window.bigscreenPlayer.playbackStrategy === PlaybackStrategy.MSE) {
|
|
5943
|
-
return import('./msestrategy-
|
|
5940
|
+
return import('./msestrategy-38ff6928.js')
|
|
5944
5941
|
.then(({ default: MSEStrategy }) => resolve(MSEStrategy))
|
|
5945
5942
|
.catch(() => {
|
|
5946
5943
|
reject({ error: "strategyDynamicLoadError" });
|
|
@@ -6387,7 +6384,7 @@ function CallCallbacks(callbacks, data) {
|
|
|
6387
6384
|
}
|
|
6388
6385
|
}
|
|
6389
6386
|
|
|
6390
|
-
var Version = "8.2.
|
|
6387
|
+
var Version = "8.2.6";
|
|
6391
6388
|
|
|
6392
6389
|
var sourceList;
|
|
6393
6390
|
var source;
|
|
@@ -7738,7 +7735,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
|
|
|
7738
7735
|
|
|
7739
7736
|
if (available()) {
|
|
7740
7737
|
if (useLegacySubs) {
|
|
7741
|
-
import('./legacysubtitles-
|
|
7738
|
+
import('./legacysubtitles-e768c12f.js')
|
|
7742
7739
|
.then(({ default: LegacySubtitles }) => {
|
|
7743
7740
|
subtitlesContainer = LegacySubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
|
|
7744
7741
|
callback(subtitlesEnabled);
|
|
@@ -7747,7 +7744,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
|
|
|
7747
7744
|
Plugins.interface.onSubtitlesDynamicLoadError();
|
|
7748
7745
|
});
|
|
7749
7746
|
} else {
|
|
7750
|
-
import('./imscsubtitles-
|
|
7747
|
+
import('./imscsubtitles-cff29202.js')
|
|
7751
7748
|
.then(({ default: IMSCSubtitles }) => {
|
|
7752
7749
|
subtitlesContainer = IMSCSubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
|
|
7753
7750
|
callback(subtitlesEnabled);
|
|
@@ -8020,7 +8017,16 @@ function BigscreenPlayer() {
|
|
|
8020
8017
|
resizer = Resizer();
|
|
8021
8018
|
DebugToolInstance.init();
|
|
8022
8019
|
DebugToolInstance.setRootElement(playbackElement);
|
|
8020
|
+
|
|
8023
8021
|
DebugToolInstance.staticMetric("version", Version);
|
|
8022
|
+
|
|
8023
|
+
if (typeof bigscreenPlayerData.initialPlaybackTime === "number") {
|
|
8024
|
+
DebugToolInstance.staticMetric("initial-playback-time", bigscreenPlayerData.initialPlaybackTime);
|
|
8025
|
+
}
|
|
8026
|
+
if (typeof window.bigscreenPlayer?.playbackStrategy === "string") {
|
|
8027
|
+
DebugToolInstance.staticMetric("strategy", window.bigscreenPlayer && window.bigscreenPlayer.playbackStrategy);
|
|
8028
|
+
}
|
|
8029
|
+
|
|
8024
8030
|
windowType = newWindowType;
|
|
8025
8031
|
serverDate = bigscreenPlayerData.serverDate;
|
|
8026
8032
|
|
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-31038ecf.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-31038ecf.js';
|
|
3
3
|
|
|
4
4
|
function filter(manifest, representationOptions) {
|
|
5
5
|
const constantFps = representationOptions.constantFps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bigscreen-player",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Simplified media playback for bigscreen devices.",
|
|
6
6
|
"main": "dist/esm/main.js",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript-eslint": "^7.2.0"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"dashjs": "github:bbc/dash.js#smp-v4.7.3-
|
|
66
|
+
"dashjs": "github:bbc/dash.js#smp-v4.7.3-1",
|
|
67
67
|
"smp-imsc": "github:bbc/imscJS#v1.0.3"
|
|
68
68
|
},
|
|
69
69
|
"repository": {
|