bigscreen-player 8.2.0 → 8.2.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-119375e3.js → imscsubtitles-5bdbcdb9.js} +1 -1
- package/dist/esm/{legacysubtitles-6de060f9.js → legacysubtitles-9a2eaf33.js} +1 -1
- package/dist/esm/{main-3159416c.js → main-b47cafcf.js} +8 -8
- package/dist/esm/main.d.ts +4 -4
- package/dist/esm/main.js +1 -1
- package/dist/esm/{msestrategy-01ed7ba0.js → msestrategy-ee4a8101.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-b47cafcf.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-b47cafcf.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Safely checks if an attribute exists on an element.
|
|
@@ -5928,7 +5928,7 @@ BasicStrategy.getLiveSupport = () => LiveSupport.SEEKABLE;
|
|
|
5928
5928
|
function StrategyPicker() {
|
|
5929
5929
|
return new Promise((resolve, reject) => {
|
|
5930
5930
|
if (window.bigscreenPlayer.playbackStrategy === PlaybackStrategy.MSE) {
|
|
5931
|
-
return import('./msestrategy-
|
|
5931
|
+
return import('./msestrategy-ee4a8101.js')
|
|
5932
5932
|
.then(({ default: MSEStrategy }) => resolve(MSEStrategy))
|
|
5933
5933
|
.catch(() => {
|
|
5934
5934
|
reject({ error: "strategyDynamicLoadError" });
|
|
@@ -6375,7 +6375,7 @@ function CallCallbacks(callbacks, data) {
|
|
|
6375
6375
|
}
|
|
6376
6376
|
}
|
|
6377
6377
|
|
|
6378
|
-
var Version = "8.2.
|
|
6378
|
+
var Version = "8.2.1";
|
|
6379
6379
|
|
|
6380
6380
|
var sourceList;
|
|
6381
6381
|
var source;
|
|
@@ -7726,7 +7726,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
|
|
|
7726
7726
|
|
|
7727
7727
|
if (available()) {
|
|
7728
7728
|
if (useLegacySubs) {
|
|
7729
|
-
import('./legacysubtitles-
|
|
7729
|
+
import('./legacysubtitles-9a2eaf33.js')
|
|
7730
7730
|
.then(({ default: LegacySubtitles }) => {
|
|
7731
7731
|
subtitlesContainer = LegacySubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
|
|
7732
7732
|
callback(subtitlesEnabled);
|
|
@@ -7735,7 +7735,7 @@ function Subtitles(mediaPlayer, autoStart, playbackElement, defaultStyleOpts, me
|
|
|
7735
7735
|
Plugins.interface.onSubtitlesDynamicLoadError();
|
|
7736
7736
|
});
|
|
7737
7737
|
} else {
|
|
7738
|
-
import('./imscsubtitles-
|
|
7738
|
+
import('./imscsubtitles-5bdbcdb9.js')
|
|
7739
7739
|
.then(({ default: IMSCSubtitles }) => {
|
|
7740
7740
|
subtitlesContainer = IMSCSubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
|
|
7741
7741
|
callback(subtitlesEnabled);
|
|
@@ -8000,10 +8000,10 @@ function BigscreenPlayer() {
|
|
|
8000
8000
|
* @function
|
|
8001
8001
|
* @name init
|
|
8002
8002
|
* @param {HTMLDivElement} playbackElement - The Div element where content elements should be rendered
|
|
8003
|
-
* @param {
|
|
8003
|
+
* @param {InitData} bigscreenPlayerData
|
|
8004
8004
|
* @param {WindowTypes} newWindowType
|
|
8005
8005
|
* @param {boolean} enableSubtitles - Enable subtitles on initialisation
|
|
8006
|
-
* @param {
|
|
8006
|
+
* @param {InitCallbacks} callbacks
|
|
8007
8007
|
*/
|
|
8008
8008
|
init: (newPlaybackElement, bigscreenPlayerData, newWindowType, enableSubtitles, callbacks = {}) => {
|
|
8009
8009
|
playbackElement = newPlaybackElement;
|
|
@@ -8327,7 +8327,7 @@ function BigscreenPlayer() {
|
|
|
8327
8327
|
/**
|
|
8328
8328
|
* Customise the rendered subitles style
|
|
8329
8329
|
*
|
|
8330
|
-
* @param {
|
|
8330
|
+
* @param {SubtitlesCustomisationOptions} styleOpts
|
|
8331
8331
|
*/
|
|
8332
8332
|
customiseSubtitles: (styleOpts) => {
|
|
8333
8333
|
if (subtitles) {
|
|
@@ -8339,7 +8339,7 @@ function BigscreenPlayer() {
|
|
|
8339
8339
|
* Render an example subtitles string with a given style and location
|
|
8340
8340
|
*
|
|
8341
8341
|
* @param {string} xmlString - EBU-TT-D compliant XML String
|
|
8342
|
-
* @param {
|
|
8342
|
+
* @param {SubtitlesCustomisationOptions} styleOpts
|
|
8343
8343
|
* @param {DOMRect} safePosition
|
|
8344
8344
|
*/
|
|
8345
8345
|
renderSubtitleExample: (xmlString, styleOpts, safePosition) => {
|
package/dist/esm/main.d.ts
CHANGED
|
@@ -73,10 +73,10 @@ declare function BigscreenPlayer(): {
|
|
|
73
73
|
* @function
|
|
74
74
|
* @name init
|
|
75
75
|
* @param {HTMLDivElement} playbackElement - The Div element where content elements should be rendered
|
|
76
|
-
* @param {
|
|
76
|
+
* @param {InitData} bigscreenPlayerData
|
|
77
77
|
* @param {WindowTypes} newWindowType
|
|
78
78
|
* @param {boolean} enableSubtitles - Enable subtitles on initialisation
|
|
79
|
-
* @param {
|
|
79
|
+
* @param {InitCallbacks} callbacks
|
|
80
80
|
*/
|
|
81
81
|
init: (newPlaybackElement: any, bigscreenPlayerData: InitData, newWindowType: WindowTypes, enableSubtitles: boolean, callbacks?: InitCallbacks) => void;
|
|
82
82
|
/**
|
|
@@ -244,14 +244,14 @@ declare function BigscreenPlayer(): {
|
|
|
244
244
|
/**
|
|
245
245
|
* Customise the rendered subitles style
|
|
246
246
|
*
|
|
247
|
-
* @param {
|
|
247
|
+
* @param {SubtitlesCustomisationOptions} styleOpts
|
|
248
248
|
*/
|
|
249
249
|
customiseSubtitles: (styleOpts: SubtitlesCustomisationOptions) => void;
|
|
250
250
|
/**
|
|
251
251
|
* Render an example subtitles string with a given style and location
|
|
252
252
|
*
|
|
253
253
|
* @param {string} xmlString - EBU-TT-D compliant XML String
|
|
254
|
-
* @param {
|
|
254
|
+
* @param {SubtitlesCustomisationOptions} styleOpts
|
|
255
255
|
* @param {DOMRect} safePosition
|
|
256
256
|
*/
|
|
257
257
|
renderSubtitleExample: (xmlString: string, styleOpts: SubtitlesCustomisationOptions, safePosition: DOMRect) => void;
|
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-b47cafcf.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-b47cafcf.js';
|
|
3
3
|
|
|
4
4
|
function filter(manifest, representationOptions) {
|
|
5
5
|
const constantFps = representationOptions.constantFps;
|