bigscreen-player 8.5.1 → 8.5.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-f137a339.js → imscsubtitles-a357bd97.js} +1 -1
- package/dist/esm/{legacysubtitles-5f481498.js → legacysubtitles-6385d593.js} +18 -6
- package/dist/esm/{main-3fe8445f.js → main-e0985aeb.js} +4 -4
- package/dist/esm/main.js +1 -1
- package/dist/esm/{msestrategy-00336797.js → msestrategy-f60acf3b.js} +12 -5
- 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-e0985aeb.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-e0985aeb.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Safely checks if an attribute exists on an element.
|
|
@@ -387,18 +387,30 @@ function LegacySubtitles(mediaPlayer, autoStart, parentElement, mediaSources) {
|
|
|
387
387
|
container.id = "playerCaptionsContainer";
|
|
388
388
|
DOMHelpers.addClass(container, "playerCaptions");
|
|
389
389
|
|
|
390
|
+
const videoHeight = parentElement.clientHeight;
|
|
391
|
+
|
|
390
392
|
container.style.position = "absolute";
|
|
391
393
|
container.style.bottom = "0px";
|
|
392
394
|
container.style.right = "0px";
|
|
393
|
-
container.style.width = "1216px";
|
|
394
|
-
container.style.fontSize = "42px";
|
|
395
395
|
container.style.fontWeight = "bold";
|
|
396
396
|
container.style.textAlign = "center";
|
|
397
397
|
container.style.textShadow = "#161616 2px 2px 1px";
|
|
398
398
|
container.style.color = "#ebebeb";
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
399
|
+
|
|
400
|
+
if (videoHeight === 1080) {
|
|
401
|
+
container.style.width = "1824px";
|
|
402
|
+
container.style.fontSize = "63px";
|
|
403
|
+
container.style.paddingRight = "48px";
|
|
404
|
+
container.style.paddingLeft = "48px";
|
|
405
|
+
container.style.paddingBottom = "60px";
|
|
406
|
+
} else {
|
|
407
|
+
// Assume 720 if not 1080. Styling implementation could be cleaner, but this is a quick fix for legacy subtitles
|
|
408
|
+
container.style.width = "1216px";
|
|
409
|
+
container.style.fontSize = "42px";
|
|
410
|
+
container.style.paddingRight = "32px";
|
|
411
|
+
container.style.paddingLeft = "32px";
|
|
412
|
+
container.style.paddingBottom = "40px";
|
|
413
|
+
}
|
|
402
414
|
|
|
403
415
|
// TODO: We don't need this extra Div really... can we get rid of render() and use the passed in container?
|
|
404
416
|
subtitlesRenderer = Renderer("playerCaptions", xml, mediaPlayer);
|
|
@@ -5960,7 +5960,7 @@ BasicStrategy.getLiveSupport = () => LiveSupport.SEEKABLE;
|
|
|
5960
5960
|
function StrategyPicker() {
|
|
5961
5961
|
return new Promise((resolve, reject) => {
|
|
5962
5962
|
if (window.bigscreenPlayer.playbackStrategy === PlaybackStrategy.MSE) {
|
|
5963
|
-
return import('./msestrategy-
|
|
5963
|
+
return import('./msestrategy-f60acf3b.js')
|
|
5964
5964
|
.then(({ default: MSEStrategy }) => resolve(MSEStrategy))
|
|
5965
5965
|
.catch(() => {
|
|
5966
5966
|
reject({ error: "strategyDynamicLoadError" });
|
|
@@ -6383,7 +6383,7 @@ const PauseTriggers = {
|
|
|
6383
6383
|
DEVICE: 3,
|
|
6384
6384
|
};
|
|
6385
6385
|
|
|
6386
|
-
var Version = "8.5.
|
|
6386
|
+
var Version = "8.5.3";
|
|
6387
6387
|
|
|
6388
6388
|
var sourceList;
|
|
6389
6389
|
var source;
|
|
@@ -7734,7 +7734,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
|
|
|
7734
7734
|
|
|
7735
7735
|
if (available()) {
|
|
7736
7736
|
if (useLegacySubs) {
|
|
7737
|
-
import('./legacysubtitles-
|
|
7737
|
+
import('./legacysubtitles-6385d593.js')
|
|
7738
7738
|
.then(({ default: LegacySubtitles }) => {
|
|
7739
7739
|
subtitlesContainer = LegacySubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
|
|
7740
7740
|
callback(subtitlesEnabled);
|
|
@@ -7743,7 +7743,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
|
|
|
7743
7743
|
Plugins.interface.onSubtitlesDynamicLoadError();
|
|
7744
7744
|
});
|
|
7745
7745
|
} else {
|
|
7746
|
-
import('./imscsubtitles-
|
|
7746
|
+
import('./imscsubtitles-a357bd97.js')
|
|
7747
7747
|
.then(({ default: IMSCSubtitles }) => {
|
|
7748
7748
|
subtitlesContainer = IMSCSubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
|
|
7749
7749
|
callback(subtitlesEnabled);
|
package/dist/esm/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BigscreenPlayer, a as DebugTool, E as EntryCategory, c as LiveSupport, d as MediaKinds, M as MediaState, h as MockBigscreenPlayer, b 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, c as LiveSupport, d as MediaKinds, M as MediaState, h as MockBigscreenPlayer, b 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-e0985aeb.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 PauseTriggers, c as LiveSupport, a as DebugToolInstance, M as MediaState, P as Plugins, d as MediaKinds, e as TimeUtils, g as DynamicWindowUtils } from './main-
|
|
2
|
+
import { W as WindowTypes, U as Utils, D as DOMHelpers, b as PauseTriggers, c as LiveSupport, a as DebugToolInstance, M as MediaState, P as Plugins, d as MediaKinds, e as TimeUtils, g as DynamicWindowUtils } from './main-e0985aeb.js';
|
|
3
3
|
|
|
4
4
|
function filter(manifest, representationOptions) {
|
|
5
5
|
const constantFps = representationOptions.constantFps;
|
|
@@ -439,6 +439,11 @@ function MSEStrategy(mediaSources, windowType, mediaKind, playbackElement, isUHD
|
|
|
439
439
|
|
|
440
440
|
function onManifestValidityChange(event) {
|
|
441
441
|
DebugToolInstance.info(`Manifest validity changed. Duration is: ${event.newDuration}`);
|
|
442
|
+
if (windowType === WindowTypes.GROWING) {
|
|
443
|
+
mediaPlayer.refreshManifest((manifest) => {
|
|
444
|
+
DebugToolInstance.info(`Manifest Refreshed. Duration is: ${manifest.mediaPresentationDuration}`);
|
|
445
|
+
});
|
|
446
|
+
}
|
|
442
447
|
}
|
|
443
448
|
|
|
444
449
|
function onStreamInitialised() {
|
|
@@ -725,10 +730,12 @@ function MSEStrategy(mediaSources, windowType, mediaKind, playbackElement, isUHD
|
|
|
725
730
|
if (isNaN(mediaPresentationDuration)) {
|
|
726
731
|
mediaPlayer.seek(seekToTime);
|
|
727
732
|
} else {
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
);
|
|
733
|
+
const clampedSeekTime = getClampedTime(seekToTime, {
|
|
734
|
+
start: getSeekableRange().start,
|
|
735
|
+
end: mediaPresentationDuration,
|
|
736
|
+
});
|
|
737
|
+
DebugToolInstance.info(`Stream ended. Clamping seek point to end of stream - seek point now: ${clampedSeekTime}`);
|
|
738
|
+
mediaPlayer.seek(clampedSeekTime);
|
|
732
739
|
}
|
|
733
740
|
});
|
|
734
741
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bigscreen-player",
|
|
3
|
-
"version": "8.5.
|
|
3
|
+
"version": "8.5.3",
|
|
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-3",
|
|
67
67
|
"smp-imsc": "github:bbc/imscJS#v1.0.3"
|
|
68
68
|
},
|
|
69
69
|
"repository": {
|