@gcorevideo/player 2.19.8 → 2.19.9
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/core.js +7 -9
- package/dist/index.css +409 -409
- package/dist/index.js +10 -16
- package/dist/plugins/index.css +1468 -1468
- package/dist/plugins/index.js +2 -4
- package/lib/Player.d.ts.map +1 -1
- package/lib/Player.js +3 -5
- package/lib/playback/hls-playback/HlsPlayback.d.ts.map +1 -1
- package/lib/playback/hls-playback/HlsPlayback.js +4 -4
- package/lib/plugins/source-controller/SourceController.d.ts.map +1 -1
- package/lib/plugins/source-controller/SourceController.js +3 -7
- package/package.json +1 -1
- package/src/Player.ts +3 -5
- package/src/playback/hls-playback/HlsPlayback.ts +10 -5
- package/src/plugins/source-controller/SourceController.ts +4 -8
- package/tsconfig.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -41803,11 +41803,11 @@ class HlsPlayback extends HTML5Video {
|
|
|
41803
41803
|
this._hls = null;
|
|
41804
41804
|
}
|
|
41805
41805
|
_createHLSInstance() {
|
|
41806
|
-
const config = {
|
|
41807
|
-
...this.options.playback.hlsjsConfig,
|
|
41806
|
+
const config = $.extend(true, {
|
|
41808
41807
|
maxBufferLength: 2,
|
|
41809
41808
|
maxMaxBufferLength: 4,
|
|
41810
|
-
};
|
|
41809
|
+
}, this.options.playback.hlsjsConfig);
|
|
41810
|
+
trace(`${T$b} _createHLSInstance`, { config });
|
|
41811
41811
|
this._hls = new Hls(config);
|
|
41812
41812
|
}
|
|
41813
41813
|
_attachHLSMedia() {
|
|
@@ -42779,11 +42779,10 @@ class Player {
|
|
|
42779
42779
|
sources,
|
|
42780
42780
|
});
|
|
42781
42781
|
this.rootNode = rootNode;
|
|
42782
|
-
const coreOptions = {
|
|
42783
|
-
...this.config, // plugin settings
|
|
42782
|
+
const coreOptions = $.extend(true, this.config, {
|
|
42784
42783
|
allowUserInteraction: true,
|
|
42785
42784
|
autoPlay: false,
|
|
42786
|
-
dash: this.config.dash,
|
|
42785
|
+
dash: this.config.dash,
|
|
42787
42786
|
debug: this.config.debug || 'none',
|
|
42788
42787
|
events: this.events,
|
|
42789
42788
|
height: rootNode.clientHeight,
|
|
@@ -42796,7 +42795,6 @@ class Player {
|
|
|
42796
42795
|
mute: this.config.mute,
|
|
42797
42796
|
crossOrigin: 'anonymous', // TODO
|
|
42798
42797
|
hlsjsConfig: {
|
|
42799
|
-
// TODO
|
|
42800
42798
|
debug: this.config.debug === 'all' || this.config.debug === 'hls',
|
|
42801
42799
|
},
|
|
42802
42800
|
},
|
|
@@ -42807,7 +42805,7 @@ class Player {
|
|
|
42807
42805
|
mimeType: source ? source.mimeType : undefined,
|
|
42808
42806
|
sources,
|
|
42809
42807
|
strings: this.config.strings,
|
|
42810
|
-
};
|
|
42808
|
+
});
|
|
42811
42809
|
return coreOptions;
|
|
42812
42810
|
}
|
|
42813
42811
|
configurePlaybacks() {
|
|
@@ -42865,7 +42863,7 @@ class Player {
|
|
|
42865
42863
|
}
|
|
42866
42864
|
}
|
|
42867
42865
|
|
|
42868
|
-
var version$1 = "2.19.
|
|
42866
|
+
var version$1 = "2.19.9";
|
|
42869
42867
|
|
|
42870
42868
|
var packages = {
|
|
42871
42869
|
"node_modules/@clappr/core": {
|
|
@@ -51199,6 +51197,7 @@ class SourceController extends CorePlugin {
|
|
|
51199
51197
|
onReady() {
|
|
51200
51198
|
trace(`${T} onReady`, {
|
|
51201
51199
|
retrying: this.active,
|
|
51200
|
+
currentSource: this.sourcesList[this.currentSourceIndex],
|
|
51202
51201
|
});
|
|
51203
51202
|
const spinner = this.core.activeContainer?.getPlugin('spinner');
|
|
51204
51203
|
if (spinner) {
|
|
@@ -51209,6 +51208,7 @@ class SourceController extends CorePlugin {
|
|
|
51209
51208
|
else {
|
|
51210
51209
|
this.sync = noSync;
|
|
51211
51210
|
}
|
|
51211
|
+
// TODO bind to CORE_ACTIVE_CONTAINER_CHANGED
|
|
51212
51212
|
this.bindContainerEventListeners();
|
|
51213
51213
|
if (this.active) {
|
|
51214
51214
|
this.core.activeContainer?.getPlugin('poster_custom')?.disable();
|
|
@@ -51216,9 +51216,6 @@ class SourceController extends CorePlugin {
|
|
|
51216
51216
|
}
|
|
51217
51217
|
}
|
|
51218
51218
|
bindContainerEventListeners() {
|
|
51219
|
-
trace(`${T} bindContainerEventListeners`, {
|
|
51220
|
-
activePlayback: this.core.activePlayback?.name,
|
|
51221
|
-
});
|
|
51222
51219
|
this.core.activePlayback.on(Events$1.PLAYBACK_ERROR, (error) => {
|
|
51223
51220
|
trace(`${T} on PLAYBACK_ERROR`, {
|
|
51224
51221
|
error: {
|
|
@@ -51257,7 +51254,6 @@ class SourceController extends CorePlugin {
|
|
|
51257
51254
|
trace(`${T} retryPlayback enter`, {
|
|
51258
51255
|
currentSourceIndex: this.currentSourceIndex,
|
|
51259
51256
|
currentSource: this.sourcesList[this.currentSourceIndex],
|
|
51260
|
-
sourcesList: this.sourcesList,
|
|
51261
51257
|
});
|
|
51262
51258
|
this.active = true;
|
|
51263
51259
|
this.getNextMediaSource().then((nextSource) => {
|
|
@@ -51266,9 +51262,7 @@ class SourceController extends CorePlugin {
|
|
|
51266
51262
|
});
|
|
51267
51263
|
const rnd = RETRY_DELAY_BLUR * Math.random();
|
|
51268
51264
|
this.sync(() => {
|
|
51269
|
-
trace(`${T} retryPlayback loading
|
|
51270
|
-
nextSource,
|
|
51271
|
-
});
|
|
51265
|
+
trace(`${T} retryPlayback loading...`);
|
|
51272
51266
|
this.core.load(nextSource.source, nextSource.mimeType);
|
|
51273
51267
|
trace(`${T} retryPlayback loaded`, {
|
|
51274
51268
|
nextSource,
|