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

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.js CHANGED
@@ -1073,7 +1073,7 @@
1073
1073
  // Some browsers don't allow to use bind on console object anyway
1074
1074
  // fallback to default if needed
1075
1075
  try {
1076
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.4.0.canary.11045");
1076
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.4.0.canary.11046");
1077
1077
  } catch (e) {
1078
1078
  /* log fn threw an exception. All logger methods are no-ops. */
1079
1079
  return createLogger();
@@ -10215,8 +10215,7 @@
10215
10215
  this.fragmentTracker.removeFragmentsInRange(start, Infinity, this.playlistType, false, true);
10216
10216
  };
10217
10217
  _proto.updateLevelTiming = function updateLevelTiming(frag, part, level, partial) {
10218
- var _this7 = this,
10219
- _this$transmuxer;
10218
+ var _this7 = this;
10220
10219
  var details = level.details;
10221
10220
  if (!details) {
10222
10221
  this.warn('level.details undefined');
@@ -10247,25 +10246,28 @@
10247
10246
  }
10248
10247
  return result;
10249
10248
  }, false);
10250
- if (!parsed && ((_this$transmuxer = this.transmuxer) == null ? void 0 : _this$transmuxer.error) === null) {
10251
- var error = new Error("Found no media in fragment " + frag.sn + " of " + this.playlistLabel() + " " + frag.level + " resetting transmuxer to fallback to playlist timing");
10249
+ if (!parsed) {
10250
+ var _this$transmuxer;
10252
10251
  if (level.fragmentError === 0) {
10253
10252
  // Mark and track the odd empty segment as a gap to avoid reloading
10254
10253
  this.treatAsGap(frag, level);
10255
10254
  }
10256
- this.warn(error.message);
10257
- this.hls.trigger(Events.ERROR, {
10258
- type: ErrorTypes.MEDIA_ERROR,
10259
- details: ErrorDetails.FRAG_PARSING_ERROR,
10260
- fatal: false,
10261
- error: error,
10262
- frag: frag,
10263
- reason: "Found no media in msn " + frag.sn + " of " + this.playlistLabel() + " \"" + level.url + "\""
10264
- });
10265
- if (!this.hls) {
10266
- return;
10255
+ if (((_this$transmuxer = this.transmuxer) == null ? void 0 : _this$transmuxer.error) === null) {
10256
+ var error = new Error("Found no media in fragment " + frag.sn + " of " + this.playlistLabel() + " " + frag.level + " resetting transmuxer to fallback to playlist timing");
10257
+ this.warn(error.message);
10258
+ this.hls.trigger(Events.ERROR, {
10259
+ type: ErrorTypes.MEDIA_ERROR,
10260
+ details: ErrorDetails.FRAG_PARSING_ERROR,
10261
+ fatal: false,
10262
+ error: error,
10263
+ frag: frag,
10264
+ reason: "Found no media in msn " + frag.sn + " of " + this.playlistLabel() + " \"" + level.url + "\""
10265
+ });
10266
+ if (!this.hls) {
10267
+ return;
10268
+ }
10269
+ this.resetTransmuxer();
10267
10270
  }
10268
- this.resetTransmuxer();
10269
10271
  // For this error fallthrough. Marking parsed will allow advancing to next fragment.
10270
10272
  }
10271
10273
  this.state = State.PARSED;
@@ -16448,7 +16450,7 @@
16448
16450
  return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
16449
16451
  }
16450
16452
 
16451
- var version = "1.6.0-beta.4.0.canary.11045";
16453
+ var version = "1.6.0-beta.4.0.canary.11046";
16452
16454
 
16453
16455
  // ensure the worker ends up in the bundle
16454
16456
  // If the worker should not be included this gets aliased to empty.js