@clappr/hlsjs-playback 2.0.0 → 2.0.1

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.
@@ -36719,7 +36719,7 @@ class HlsjsPlayback extends HTML5Video {
36719
36719
  }
36720
36720
  get supportedVersion() {
36721
36721
  return {
36722
- min: "0.14.8"
36722
+ min: "0.15.0"
36723
36723
  };
36724
36724
  }
36725
36725
  get levels() {
@@ -36891,7 +36891,7 @@ class HlsjsPlayback extends HTML5Video {
36891
36891
  this._segmentTargetDuration = null;
36892
36892
  // #EXT-X-PLAYLIST-TYPE
36893
36893
  this._playlistType = null;
36894
- this._recoverAttemptsRemaining = this.options.hlsRecoverAttempts || DEFAULT_RECOVER_ATTEMPTS;
36894
+ this._recoverAttemptsRemaining = this.options.hlsRecoverAttempts ?? DEFAULT_RECOVER_ATTEMPTS;
36895
36895
  }
36896
36896
  _setup() {
36897
36897
  this._destroyHLSInstance();
@@ -37039,8 +37039,7 @@ class HlsjsPlayback extends HTML5Video {
37039
37039
  return this._startTime;
37040
37040
  }
37041
37041
  seekPercentage(percentage) {
37042
- const seekTo = percentage > 0 ? this._duration * (percentage / 100) : this._duration;
37043
- this.seek(seekTo);
37042
+ this.seek(this._duration * (percentage / 100));
37044
37043
  }
37045
37044
  seek(time) {
37046
37045
  if (time < 0) {