@gcorevideo/player 2.28.10 → 2.28.12

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
@@ -49404,21 +49404,22 @@ class HTML5Video extends BasePlayback {
49404
49404
  super._onEnded();
49405
49405
  }
49406
49406
  _handleBufferingEvents() {
49407
- // TODO use the logic from the base class to detect if it's stalled or resumed, because in the latter case the current behavior is not correct
49408
- if (!this.stallTimerId) {
49409
- this.stallTimerId = setTimeout(() => {
49410
- this.stallTimerId = null;
49411
- const error = this.createError({
49412
- code: PlaybackErrorCode.MediaSourceUnavailable,
49413
- level: PlayerError.Levels.FATAL,
49414
- message: 'Stall timeout',
49415
- description: 'Playback stalled for too long',
49416
- });
49417
- this.trigger(Events$1.PLAYBACK_ERROR, error);
49418
- setTimeout(() => this.stop(), 0);
49419
- }, STALL_TIMEOUT);
49420
- }
49421
49407
  super._handleBufferingEvents();
49408
+ // TODO test case: playback stalled and then resumed. The should be no MediaSourceUnavailable/"Stall timeout" error
49409
+ if (!this._isBuffering || this.stallTimerId) {
49410
+ return;
49411
+ }
49412
+ this.stallTimerId = setTimeout(() => {
49413
+ this.stallTimerId = null;
49414
+ const error = this.createError({
49415
+ code: PlaybackErrorCode.MediaSourceUnavailable,
49416
+ level: PlayerError.Levels.FATAL,
49417
+ message: 'Stall timeout',
49418
+ description: 'Playback stalled for too long',
49419
+ });
49420
+ this.trigger(Events$1.PLAYBACK_ERROR, error);
49421
+ setTimeout(() => this.stop(), 0);
49422
+ }, STALL_TIMEOUT);
49422
49423
  }
49423
49424
  _onPlaying() {
49424
49425
  if (this.stallTimerId) {
@@ -49957,7 +49958,7 @@ class Player {
49957
49958
  }
49958
49959
  }
49959
49960
 
49960
- var version$1 = "2.28.10";
49961
+ var version$1 = "2.28.12";
49961
49962
 
49962
49963
  var packages = {
49963
49964
  "node_modules/@clappr/core": {