hls.js 1.6.0-beta.4.0.canary.11045 → 1.6.0-beta.4.0.canary.11048

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
@@ -1044,7 +1044,7 @@
1044
1044
  // Some browsers don't allow to use bind on console object anyway
1045
1045
  // fallback to default if needed
1046
1046
  try {
1047
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.4.0.canary.11045");
1047
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.4.0.canary.11048");
1048
1048
  } catch (e) {
1049
1049
  /* log fn threw an exception. All logger methods are no-ops. */
1050
1050
  return createLogger();
@@ -17696,8 +17696,7 @@
17696
17696
  this.fragmentTracker.removeFragmentsInRange(start, Infinity, this.playlistType, false, true);
17697
17697
  };
17698
17698
  _proto.updateLevelTiming = function updateLevelTiming(frag, part, level, partial) {
17699
- var _this7 = this,
17700
- _this$transmuxer;
17699
+ var _this7 = this;
17701
17700
  var details = level.details;
17702
17701
  if (!details) {
17703
17702
  this.warn('level.details undefined');
@@ -17728,25 +17727,28 @@
17728
17727
  }
17729
17728
  return result;
17730
17729
  }, false);
17731
- if (!parsed && ((_this$transmuxer = this.transmuxer) == null ? void 0 : _this$transmuxer.error) === null) {
17732
- var error = new Error("Found no media in fragment " + frag.sn + " of " + this.playlistLabel() + " " + frag.level + " resetting transmuxer to fallback to playlist timing");
17730
+ if (!parsed) {
17731
+ var _this$transmuxer;
17733
17732
  if (level.fragmentError === 0) {
17734
17733
  // Mark and track the odd empty segment as a gap to avoid reloading
17735
17734
  this.treatAsGap(frag, level);
17736
17735
  }
17737
- this.warn(error.message);
17738
- this.hls.trigger(Events.ERROR, {
17739
- type: ErrorTypes.MEDIA_ERROR,
17740
- details: ErrorDetails.FRAG_PARSING_ERROR,
17741
- fatal: false,
17742
- error: error,
17743
- frag: frag,
17744
- reason: "Found no media in msn " + frag.sn + " of " + this.playlistLabel() + " \"" + level.url + "\""
17745
- });
17746
- if (!this.hls) {
17747
- return;
17736
+ if (((_this$transmuxer = this.transmuxer) == null ? void 0 : _this$transmuxer.error) === null) {
17737
+ var error = new Error("Found no media in fragment " + frag.sn + " of " + this.playlistLabel() + " " + frag.level + " resetting transmuxer to fallback to playlist timing");
17738
+ this.warn(error.message);
17739
+ this.hls.trigger(Events.ERROR, {
17740
+ type: ErrorTypes.MEDIA_ERROR,
17741
+ details: ErrorDetails.FRAG_PARSING_ERROR,
17742
+ fatal: false,
17743
+ error: error,
17744
+ frag: frag,
17745
+ reason: "Found no media in msn " + frag.sn + " of " + this.playlistLabel() + " \"" + level.url + "\""
17746
+ });
17747
+ if (!this.hls) {
17748
+ return;
17749
+ }
17750
+ this.resetTransmuxer();
17748
17751
  }
17749
- this.resetTransmuxer();
17750
17752
  // For this error fallthrough. Marking parsed will allow advancing to next fragment.
17751
17753
  }
17752
17754
  this.state = State.PARSED;
@@ -20090,7 +20092,7 @@
20090
20092
  return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
20091
20093
  }
20092
20094
 
20093
- var version = "1.6.0-beta.4.0.canary.11045";
20095
+ var version = "1.6.0-beta.4.0.canary.11048";
20094
20096
 
20095
20097
  // ensure the worker ends up in the bundle
20096
20098
  // If the worker should not be included this gets aliased to empty.js