@gcorevideo/player 2.20.19 → 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 -14
- package/dist/index.css +631 -631
- package/dist/index.js +18 -14
- package/dist/plugins/index.css +576 -576
- 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 +17 -13
- package/package.json +1 -1
- package/src/playback/HTML5Video.ts +18 -13
- package/tsconfig.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -42624,7 +42624,6 @@ const T$h = 'playback.html5_video';
|
|
|
42624
42624
|
const STALL_TIMEOUT = 15000;
|
|
42625
42625
|
class HTML5Video extends BasePlayback {
|
|
42626
42626
|
stallTimerId = null;
|
|
42627
|
-
statllTimerId = null;
|
|
42628
42627
|
/**
|
|
42629
42628
|
* @internal
|
|
42630
42629
|
*/
|
|
@@ -42664,22 +42663,19 @@ class HTML5Video extends BasePlayback {
|
|
|
42664
42663
|
trace(`${T$h} _handleBufferingEvents`, {
|
|
42665
42664
|
networkState: this.el.networkState,
|
|
42666
42665
|
});
|
|
42667
|
-
if (!this.
|
|
42668
|
-
this.
|
|
42666
|
+
if (!this.stallTimerId) {
|
|
42667
|
+
this.stallTimerId = setTimeout(() => {
|
|
42669
42668
|
trace(`${T$h} _handleBufferingEvents stall timeout`, {
|
|
42670
42669
|
buffering: this.buffering,
|
|
42671
42670
|
ended: this.ended,
|
|
42672
|
-
isPlaying: this.isPlaying,
|
|
42673
42671
|
});
|
|
42674
|
-
this.
|
|
42675
|
-
|
|
42676
|
-
|
|
42677
|
-
|
|
42678
|
-
|
|
42679
|
-
|
|
42680
|
-
|
|
42681
|
-
});
|
|
42682
|
-
}
|
|
42672
|
+
this.stallTimerId = null;
|
|
42673
|
+
this.createError({
|
|
42674
|
+
code: PlaybackErrorCode.MediaSourceUnavailable,
|
|
42675
|
+
level: PlayerError.Levels.FATAL,
|
|
42676
|
+
message: 'Stall timeout',
|
|
42677
|
+
description: 'Playback stalled for too long',
|
|
42678
|
+
});
|
|
42683
42679
|
}, STALL_TIMEOUT);
|
|
42684
42680
|
}
|
|
42685
42681
|
super._handleBufferingEvents();
|
|
@@ -42692,6 +42688,14 @@ class HTML5Video extends BasePlayback {
|
|
|
42692
42688
|
}
|
|
42693
42689
|
super._onPlaying();
|
|
42694
42690
|
}
|
|
42691
|
+
_onPause() {
|
|
42692
|
+
trace(`${T$h} _onPause`);
|
|
42693
|
+
super._onPause();
|
|
42694
|
+
if (this.stallTimerId) {
|
|
42695
|
+
clearTimeout(this.stallTimerId);
|
|
42696
|
+
this.stallTimerId = null;
|
|
42697
|
+
}
|
|
42698
|
+
}
|
|
42695
42699
|
}
|
|
42696
42700
|
|
|
42697
42701
|
// TODO consider allowing the variation of the order of playback modules
|
|
@@ -43165,7 +43169,7 @@ class Player {
|
|
|
43165
43169
|
}
|
|
43166
43170
|
}
|
|
43167
43171
|
|
|
43168
|
-
var version$1 = "2.20.
|
|
43172
|
+
var version$1 = "2.20.20";
|
|
43169
43173
|
|
|
43170
43174
|
var packages = {
|
|
43171
43175
|
"node_modules/@clappr/core": {
|