bigscreen-player 8.5.0 → 8.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-bc7164a3.js → imscsubtitles-f137a339.js} +1 -1
- package/dist/esm/{legacysubtitles-46b9ab26.js → legacysubtitles-5f481498.js} +24 -11
- package/dist/esm/{main-e9ef0f50.js → main-3fe8445f.js} +4 -4
- package/dist/esm/main.js +1 -1
- package/dist/esm/{msestrategy-6447183c.js → msestrategy-00336797.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-3fe8445f.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-3fe8445f.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Safely checks if an attribute exists on an element.
|
|
@@ -360,20 +360,19 @@ function LegacySubtitles(mediaPlayer, autoStart, parentElement, mediaSources) {
|
|
|
360
360
|
if (url && url !== "") {
|
|
361
361
|
LoadUrl(url, {
|
|
362
362
|
timeout: mediaSources.subtitlesRequestTimeout(),
|
|
363
|
-
onLoad: (responseXML
|
|
364
|
-
if (
|
|
363
|
+
onLoad: (responseXML) => {
|
|
364
|
+
if (responseXML) {
|
|
365
|
+
createContainer(responseXML);
|
|
366
|
+
} else {
|
|
365
367
|
DebugToolInstance.info("Error: responseXML is invalid.");
|
|
366
368
|
Plugins.interface.onSubtitlesXMLError({ cdn: mediaSources.currentSubtitlesCdn() });
|
|
367
|
-
return
|
|
368
|
-
} else {
|
|
369
|
-
createContainer(responseXML);
|
|
370
369
|
}
|
|
371
370
|
},
|
|
372
371
|
onError: ({ statusCode, ...rest } = {}) => {
|
|
373
372
|
const errorCase = () => {
|
|
374
373
|
DebugToolInstance.info("Failed to load from subtitles file from all available CDNs");
|
|
375
374
|
};
|
|
376
|
-
DebugToolInstance.info(
|
|
375
|
+
DebugToolInstance.info(`Error loading subtitles data: ${statusCode}`);
|
|
377
376
|
mediaSources.failoverSubtitles(loadSubtitles, errorCase, { statusCode, ...rest });
|
|
378
377
|
},
|
|
379
378
|
onTimeout: () => {
|
|
@@ -388,6 +387,19 @@ function LegacySubtitles(mediaPlayer, autoStart, parentElement, mediaSources) {
|
|
|
388
387
|
container.id = "playerCaptionsContainer";
|
|
389
388
|
DOMHelpers.addClass(container, "playerCaptions");
|
|
390
389
|
|
|
390
|
+
container.style.position = "absolute";
|
|
391
|
+
container.style.bottom = "0px";
|
|
392
|
+
container.style.right = "0px";
|
|
393
|
+
container.style.width = "1216px";
|
|
394
|
+
container.style.fontSize = "42px";
|
|
395
|
+
container.style.fontWeight = "bold";
|
|
396
|
+
container.style.textAlign = "center";
|
|
397
|
+
container.style.textShadow = "#161616 2px 2px 1px";
|
|
398
|
+
container.style.color = "#ebebeb";
|
|
399
|
+
container.style.paddingRight = "32px";
|
|
400
|
+
container.style.paddingLeft = "32px";
|
|
401
|
+
container.style.paddingBottom = "40px";
|
|
402
|
+
|
|
391
403
|
// TODO: We don't need this extra Div really... can we get rid of render() and use the passed in container?
|
|
392
404
|
subtitlesRenderer = Renderer("playerCaptions", xml, mediaPlayer);
|
|
393
405
|
container.appendChild(subtitlesRenderer.render());
|
|
@@ -418,6 +430,7 @@ function LegacySubtitles(mediaPlayer, autoStart, parentElement, mediaSources) {
|
|
|
418
430
|
};
|
|
419
431
|
|
|
420
432
|
for (const cssClassName in classes) {
|
|
433
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
421
434
|
if (classes.hasOwnProperty(cssClassName)) {
|
|
422
435
|
// Allow multiple flags to be set at once
|
|
423
436
|
if ((classes[cssClassName] & transportControlPosition) === classes[cssClassName]) {
|
|
@@ -435,13 +448,13 @@ function LegacySubtitles(mediaPlayer, autoStart, parentElement, mediaSources) {
|
|
|
435
448
|
}
|
|
436
449
|
|
|
437
450
|
return {
|
|
438
|
-
start
|
|
439
|
-
stop
|
|
440
|
-
updatePosition
|
|
451
|
+
start,
|
|
452
|
+
stop,
|
|
453
|
+
updatePosition,
|
|
441
454
|
customise: () => {},
|
|
442
455
|
renderExample: () => {},
|
|
443
456
|
clearExample: () => {},
|
|
444
|
-
tearDown
|
|
457
|
+
tearDown,
|
|
445
458
|
}
|
|
446
459
|
}
|
|
447
460
|
|
|
@@ -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-00336797.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.1";
|
|
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-5f481498.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-f137a339.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-3fe8445f.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-3fe8445f.js';
|
|
3
3
|
|
|
4
4
|
function filter(manifest, representationOptions) {
|
|
5
5
|
const constantFps = representationOptions.constantFps;
|