@gcorevideo/player 2.20.18 → 2.20.20
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 +18 -12
- package/dist/index.css +577 -577
- package/dist/index.js +18 -12
- package/dist/plugins/index.css +431 -431
- package/dist/plugins/index.js +1 -1
- package/lib/playback/HTML5Video.d.ts +1 -1
- package/lib/playback/HTML5Video.d.ts.map +1 -1
- package/lib/playback/HTML5Video.js +18 -11
- package/package.json +1 -1
- package/src/playback/HTML5Video.ts +19 -11
- package/tsconfig.tsbuildinfo +1 -1
package/dist/core.js
CHANGED
|
@@ -42538,7 +42538,6 @@ const T$1 = 'playback.html5_video';
|
|
|
42538
42538
|
const STALL_TIMEOUT = 15000;
|
|
42539
42539
|
class HTML5Video extends BasePlayback {
|
|
42540
42540
|
stallTimerId = null;
|
|
42541
|
-
statllTimerId = null;
|
|
42542
42541
|
/**
|
|
42543
42542
|
* @internal
|
|
42544
42543
|
*/
|
|
@@ -42578,20 +42577,19 @@ class HTML5Video extends BasePlayback {
|
|
|
42578
42577
|
trace(`${T$1} _handleBufferingEvents`, {
|
|
42579
42578
|
networkState: this.el.networkState,
|
|
42580
42579
|
});
|
|
42581
|
-
if (!this.
|
|
42582
|
-
this.
|
|
42580
|
+
if (!this.stallTimerId) {
|
|
42581
|
+
this.stallTimerId = setTimeout(() => {
|
|
42583
42582
|
trace(`${T$1} _handleBufferingEvents stall timeout`, {
|
|
42584
42583
|
buffering: this.buffering,
|
|
42585
42584
|
ended: this.ended,
|
|
42586
|
-
isPlaying: this.isPlaying,
|
|
42587
42585
|
});
|
|
42588
|
-
this.
|
|
42589
|
-
|
|
42590
|
-
|
|
42591
|
-
|
|
42592
|
-
|
|
42593
|
-
|
|
42594
|
-
}
|
|
42586
|
+
this.stallTimerId = null;
|
|
42587
|
+
this.createError({
|
|
42588
|
+
code: PlaybackErrorCode.MediaSourceUnavailable,
|
|
42589
|
+
level: PlayerError.Levels.FATAL,
|
|
42590
|
+
message: 'Stall timeout',
|
|
42591
|
+
description: 'Playback stalled for too long',
|
|
42592
|
+
});
|
|
42595
42593
|
}, STALL_TIMEOUT);
|
|
42596
42594
|
}
|
|
42597
42595
|
super._handleBufferingEvents();
|
|
@@ -42604,6 +42602,14 @@ class HTML5Video extends BasePlayback {
|
|
|
42604
42602
|
}
|
|
42605
42603
|
super._onPlaying();
|
|
42606
42604
|
}
|
|
42605
|
+
_onPause() {
|
|
42606
|
+
trace(`${T$1} _onPause`);
|
|
42607
|
+
super._onPause();
|
|
42608
|
+
if (this.stallTimerId) {
|
|
42609
|
+
clearTimeout(this.stallTimerId);
|
|
42610
|
+
this.stallTimerId = null;
|
|
42611
|
+
}
|
|
42612
|
+
}
|
|
42607
42613
|
}
|
|
42608
42614
|
|
|
42609
42615
|
// TODO consider allowing the variation of the order of playback modules
|
|
@@ -43077,7 +43083,7 @@ class Player {
|
|
|
43077
43083
|
}
|
|
43078
43084
|
}
|
|
43079
43085
|
|
|
43080
|
-
var version$1 = "2.20.
|
|
43086
|
+
var version$1 = "2.20.20";
|
|
43081
43087
|
|
|
43082
43088
|
var packages = {
|
|
43083
43089
|
"node_modules/@clappr/core": {
|