@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 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.statllTimerId) {
42582
- this.statllTimerId = setTimeout(() => {
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.statllTimerId = null;
42589
- if (!this.isPlaying) {
42590
- this.createError({
42591
- code: PlaybackErrorCode.MediaSourceUnavailable,
42592
- level: PlayerError.Levels.FATAL,
42593
- message: 'Stall timeout',
42594
- description: 'Playback stalled for too long',
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.19";
43086
+ var version$1 = "2.20.21";
43083
43087
 
43084
43088
  var packages = {
43085
43089
  "node_modules/@clappr/core": {