bigscreen-player 5.1.1 → 5.2.2
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-202e609e.js → imscsubtitles-877e0855.js} +1 -1
- package/dist/esm/{legacysubtitles-c022e4cc.js → legacysubtitles-7669e1ee.js} +1 -1
- package/dist/esm/{main-9380338b.js → main-4a6519a8.js} +7 -5
- package/dist/esm/main.js +1 -1
- package/dist/esm/{msestrategy-e09206c4.js → msestrategy-df1ab5e2.js} +8 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fromXML, generateISD, renderHTML } from 'smp-imsc';
|
|
2
|
-
import { b as TimeUtils, L as LoadUrl, a as DebugTool, P as Plugins, U as Utils, D as DOMHelpers } from './main-
|
|
2
|
+
import { b as TimeUtils, L as LoadUrl, a as DebugTool, P as Plugins, U as Utils, D as DOMHelpers } from './main-4a6519a8.js';
|
|
3
3
|
|
|
4
4
|
function IMSCSubtitles (mediaPlayer, autoStart, parentElement, mediaSources, defaultStyleOpts) {
|
|
5
5
|
const SEGMENTS_TO_KEEP = 3;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DOMHelpers, a as DebugTool, P as Plugins, L as LoadUrl, T as TransportControlPosition } from './main-
|
|
1
|
+
import { D as DOMHelpers, a as DebugTool, P as Plugins, L as LoadUrl, T as TransportControlPosition } from './main-4a6519a8.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Safely checks if an attribute exists on an element.
|
|
@@ -244,6 +244,8 @@ var Plugins = {
|
|
|
244
244
|
onBufferingCleared: (evt) => callOnAllPlugins('onBufferingCleared', evt),
|
|
245
245
|
onScreenCapabilityDetermined: (tvInfo) => callOnAllPlugins('onScreenCapabilityDetermined', tvInfo),
|
|
246
246
|
onPlayerInfoUpdated: (evt) => callOnAllPlugins('onPlayerInfoUpdated', evt),
|
|
247
|
+
onManifestLoaded: (manifest) => callOnAllPlugins('onManifestLoaded', manifest),
|
|
248
|
+
onQualityChangedRendered: (evt) => callOnAllPlugins('onQualityChangedRendered', evt),
|
|
247
249
|
onSubtitlesLoadError: (evt) => callOnAllPlugins('onSubtitlesLoadError', evt),
|
|
248
250
|
onSubtitlesTimeout: (evt) => callOnAllPlugins('onSubtitlesTimeout', evt),
|
|
249
251
|
onSubtitlesXMLError: (evt) => callOnAllPlugins('onSubtitlesXMLError', evt),
|
|
@@ -5671,12 +5673,12 @@ function StrategyPicker (windowType, isUHD) {
|
|
|
5671
5673
|
return resolve(NativeStrategy)
|
|
5672
5674
|
}
|
|
5673
5675
|
|
|
5674
|
-
return import('./msestrategy-
|
|
5676
|
+
return import('./msestrategy-df1ab5e2.js').then(({default: MSEStrategy}) => resolve(MSEStrategy))
|
|
5675
5677
|
.catch(() => {
|
|
5676
5678
|
reject({error: 'strategyDynamicLoadError'});
|
|
5677
5679
|
})
|
|
5678
5680
|
} else if (window.bigscreenPlayer.playbackStrategy === PlaybackStrategy.MSE) {
|
|
5679
|
-
return import('./msestrategy-
|
|
5681
|
+
return import('./msestrategy-df1ab5e2.js').then(({default: MSEStrategy}) => resolve(MSEStrategy))
|
|
5680
5682
|
.catch(() => {
|
|
5681
5683
|
reject({error: 'strategyDynamicLoadError'});
|
|
5682
5684
|
})
|
|
@@ -6056,7 +6058,7 @@ function CallCallbacks (callbacks, data) {
|
|
|
6056
6058
|
callbacks.forEach((callback) => DeferExceptions(() => callback(data)));
|
|
6057
6059
|
}
|
|
6058
6060
|
|
|
6059
|
-
var version = "5.
|
|
6061
|
+
var version = "5.2.2";
|
|
6060
6062
|
|
|
6061
6063
|
var sourceList;
|
|
6062
6064
|
var source;
|
|
@@ -7242,14 +7244,14 @@ function Subtitles (mediaPlayer, autoStart, playbackElement, defaultStyleOpts, m
|
|
|
7242
7244
|
let subtitlesContainer;
|
|
7243
7245
|
|
|
7244
7246
|
if (useLegacySubs) {
|
|
7245
|
-
import('./legacysubtitles-
|
|
7247
|
+
import('./legacysubtitles-7669e1ee.js').then(({default: LegacySubtitles}) => {
|
|
7246
7248
|
subtitlesContainer = LegacySubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
|
|
7247
7249
|
callback(subtitlesEnabled);
|
|
7248
7250
|
}).catch(() => {
|
|
7249
7251
|
Plugins.interface.onSubtitlesDynamicLoadError();
|
|
7250
7252
|
});
|
|
7251
7253
|
} else {
|
|
7252
|
-
import('./imscsubtitles-
|
|
7254
|
+
import('./imscsubtitles-877e0855.js').then(({default: IMSCSubtitles}) => {
|
|
7253
7255
|
subtitlesContainer = IMSCSubtitles(mediaPlayer, autoStart, playbackElement, mediaSources, defaultStyleOpts);
|
|
7254
7256
|
callback(subtitlesEnabled);
|
|
7255
7257
|
}).catch(() => {
|
package/dist/esm/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { B as BigscreenPlayer, c as LiveSupport, d as MediaKinds, M as MediaState, f as MockBigscreenPlayer, g as PauseTriggers, h as PlaybackStrategy, i as TransferFormat, T as TransportControlPosition, W as WindowTypes } from './main-
|
|
1
|
+
export { B as BigscreenPlayer, c as LiveSupport, d as MediaKinds, M as MediaState, f as MockBigscreenPlayer, g as PauseTriggers, h as PlaybackStrategy, i as TransferFormat, T as TransportControlPosition, W as WindowTypes } from './main-4a6519a8.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DOMHelpers, W as WindowTypes, c as LiveSupport, M as MediaState, a as DebugTool,
|
|
1
|
+
import { D as DOMHelpers, W as WindowTypes, c as LiveSupport, M as MediaState, a as DebugTool, P as Plugins, d as MediaKinds, U as Utils, b as TimeUtils, e as DynamicWindowUtils } from './main-4a6519a8.js';
|
|
2
2
|
import { MediaPlayer } from 'dashjs/index_mediaplayerOnly';
|
|
3
3
|
|
|
4
4
|
function filter (manifest, representationOptions) {
|
|
@@ -259,9 +259,15 @@ function MSEStrategy (mediaSources, windowType, mediaKind, playbackElement, isUH
|
|
|
259
259
|
|
|
260
260
|
ManifestModifier.filter(manifest, representationOptions);
|
|
261
261
|
ManifestModifier.generateBaseUrls(manifest, mediaSources.availableSources());
|
|
262
|
+
|
|
263
|
+
emitManifestInfo(manifest);
|
|
262
264
|
}
|
|
263
265
|
}
|
|
264
266
|
|
|
267
|
+
function emitManifestInfo (manifest) {
|
|
268
|
+
Plugins.interface.onManifestLoaded(manifest);
|
|
269
|
+
}
|
|
270
|
+
|
|
265
271
|
function onManifestValidityChange (event) {
|
|
266
272
|
DebugTool.info('Manifest validity changed. Duration is: ' + event.newDuration);
|
|
267
273
|
}
|
|
@@ -325,6 +331,7 @@ function MSEStrategy (mediaSources, windowType, mediaKind, playbackElement, isUH
|
|
|
325
331
|
}
|
|
326
332
|
|
|
327
333
|
emitPlayerInfo();
|
|
334
|
+
Plugins.interface.onQualityChangedRendered(event);
|
|
328
335
|
}
|
|
329
336
|
|
|
330
337
|
/**
|