hls.js 1.6.0-beta.2.0.canary.10837 → 1.6.0-beta.2.0.canary.10842

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/hls.light.js CHANGED
@@ -1029,7 +1029,7 @@
1029
1029
  // Some browsers don't allow to use bind on console object anyway
1030
1030
  // fallback to default if needed
1031
1031
  try {
1032
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.2.0.canary.10837");
1032
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.2.0.canary.10842");
1033
1033
  } catch (e) {
1034
1034
  /* log fn threw an exception. All logger methods are no-ops. */
1035
1035
  return createLogger();
@@ -4699,7 +4699,7 @@
4699
4699
  _this18.hls.trigger(Events.LIVE_BACK_BUFFER_REACHED, {
4700
4700
  bufferEnd: targetBackBufferPosition
4701
4701
  });
4702
- } else if (track != null && track.ended && buffered.end(buffered.length - 1) - currentTime < targetDuration * 2) {
4702
+ } else if (track != null && track.ended) {
4703
4703
  _this18.log("Cannot flush " + type + " back buffer while SourceBuffer is in ended state");
4704
4704
  return;
4705
4705
  }
@@ -4726,13 +4726,9 @@
4726
4726
  }
4727
4727
  var bufferStart = buffered.start(numBufferedRanges - 1);
4728
4728
  var bufferEnd = buffered.end(numBufferedRanges - 1);
4729
- var track = _this19.tracks[type];
4730
4729
  // No flush if we can tolerate the current buffer length or the current buffer range we would flush is contiguous with current position
4731
4730
  if (targetFrontBufferPosition > bufferStart || currentTime >= bufferStart && currentTime <= bufferEnd) {
4732
4731
  return;
4733
- } else if (track != null && track.ended && currentTime - bufferEnd < 2 * targetDuration) {
4734
- _this19.log("Cannot flush " + type + " front buffer while SourceBuffer is in ended state");
4735
- return;
4736
4732
  }
4737
4733
  _this19.hls.trigger(Events.BUFFER_FLUSHING, {
4738
4734
  startOffset: bufferStart,
@@ -19802,7 +19798,7 @@
19802
19798
  return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
19803
19799
  }
19804
19800
 
19805
- var version = "1.6.0-beta.2.0.canary.10837";
19801
+ var version = "1.6.0-beta.2.0.canary.10842";
19806
19802
 
19807
19803
  // ensure the worker ends up in the bundle
19808
19804
  // If the worker should not be included this gets aliased to empty.js
@@ -20983,7 +20979,7 @@
20983
20979
  };
20984
20980
  _proto.onBufferFlushed = function onBufferFlushed(event, _ref) {
20985
20981
  var type = _ref.type;
20986
- if (type !== ElementaryStreamTypes.AUDIO || this.audioOnly && !this.altAudio) {
20982
+ if (type !== ElementaryStreamTypes.AUDIO || !this.altAudio) {
20987
20983
  var mediaBuffer = (type === ElementaryStreamTypes.VIDEO ? this.videoBuffer : this.mediaBuffer) || this.media;
20988
20984
  this.afterBufferFlushed(mediaBuffer, type, PlaylistLevelType.MAIN);
20989
20985
  this.tick();