@gcorevideo/player 2.20.19 → 2.20.21
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 -14
- package/dist/index.css +1227 -1227
- package/dist/index.js +36 -25
- package/dist/plugins/index.css +600 -600
- package/dist/plugins/index.js +19 -12
- package/lib/playback/HTML5Video.d.ts +1 -1
- package/lib/playback/HTML5Video.d.ts.map +1 -1
- package/lib/playback/HTML5Video.js +17 -13
- package/lib/plugins/source-controller/SourceController.d.ts.map +1 -1
- package/lib/plugins/source-controller/SourceController.js +1 -0
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.d.ts +2 -0
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.d.ts.map +1 -1
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.js +17 -11
- package/package.json +1 -1
- package/src/playback/HTML5Video.ts +18 -13
- package/src/plugins/source-controller/SourceController.ts +1 -0
- package/src/plugins/spinner-three-bounce/SpinnerThreeBounce.ts +19 -10
- 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,22 +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
|
-
|
|
42595
|
-
});
|
|
42596
|
-
}
|
|
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
|
+
});
|
|
42597
42593
|
}, STALL_TIMEOUT);
|
|
42598
42594
|
}
|
|
42599
42595
|
super._handleBufferingEvents();
|
|
@@ -42606,6 +42602,14 @@ class HTML5Video extends BasePlayback {
|
|
|
42606
42602
|
}
|
|
42607
42603
|
super._onPlaying();
|
|
42608
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
|
+
}
|
|
42609
42613
|
}
|
|
42610
42614
|
|
|
42611
42615
|
// TODO consider allowing the variation of the order of playback modules
|
|
@@ -43079,7 +43083,7 @@ class Player {
|
|
|
43079
43083
|
}
|
|
43080
43084
|
}
|
|
43081
43085
|
|
|
43082
|
-
var version$1 = "2.20.
|
|
43086
|
+
var version$1 = "2.20.21";
|
|
43083
43087
|
|
|
43084
43088
|
var packages = {
|
|
43085
43089
|
"node_modules/@clappr/core": {
|