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.
@@ -402,7 +402,7 @@ function enableLogs(debugConfig, context, id) {
402
402
  // Some browsers don't allow to use bind on console object anyway
403
403
  // fallback to default if needed
404
404
  try {
405
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.4.0.canary.11045"}`);
405
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.4.0.canary.11048"}`);
406
406
  } catch (e) {
407
407
  /* log fn threw an exception. All logger methods are no-ops. */
408
408
  return createLogger();
@@ -8935,7 +8935,6 @@ class BaseStreamController extends TaskLoop {
8935
8935
  this.fragmentTracker.removeFragmentsInRange(start, Infinity, this.playlistType, false, true);
8936
8936
  }
8937
8937
  updateLevelTiming(frag, part, level, partial) {
8938
- var _this$transmuxer;
8939
8938
  const details = level.details;
8940
8939
  if (!details) {
8941
8940
  this.warn('level.details undefined');
@@ -8966,25 +8965,28 @@ class BaseStreamController extends TaskLoop {
8966
8965
  }
8967
8966
  return result;
8968
8967
  }, false);
8969
- if (!parsed && ((_this$transmuxer = this.transmuxer) == null ? void 0 : _this$transmuxer.error) === null) {
8970
- const error = new Error(`Found no media in fragment ${frag.sn} of ${this.playlistLabel()} ${frag.level} resetting transmuxer to fallback to playlist timing`);
8968
+ if (!parsed) {
8969
+ var _this$transmuxer;
8971
8970
  if (level.fragmentError === 0) {
8972
8971
  // Mark and track the odd empty segment as a gap to avoid reloading
8973
8972
  this.treatAsGap(frag, level);
8974
8973
  }
8975
- this.warn(error.message);
8976
- this.hls.trigger(Events.ERROR, {
8977
- type: ErrorTypes.MEDIA_ERROR,
8978
- details: ErrorDetails.FRAG_PARSING_ERROR,
8979
- fatal: false,
8980
- error,
8981
- frag,
8982
- reason: `Found no media in msn ${frag.sn} of ${this.playlistLabel()} "${level.url}"`
8983
- });
8984
- if (!this.hls) {
8985
- return;
8974
+ if (((_this$transmuxer = this.transmuxer) == null ? void 0 : _this$transmuxer.error) === null) {
8975
+ const error = new Error(`Found no media in fragment ${frag.sn} of ${this.playlistLabel()} ${frag.level} resetting transmuxer to fallback to playlist timing`);
8976
+ this.warn(error.message);
8977
+ this.hls.trigger(Events.ERROR, {
8978
+ type: ErrorTypes.MEDIA_ERROR,
8979
+ details: ErrorDetails.FRAG_PARSING_ERROR,
8980
+ fatal: false,
8981
+ error,
8982
+ frag,
8983
+ reason: `Found no media in msn ${frag.sn} of ${this.playlistLabel()} "${level.url}"`
8984
+ });
8985
+ if (!this.hls) {
8986
+ return;
8987
+ }
8988
+ this.resetTransmuxer();
8986
8989
  }
8987
- this.resetTransmuxer();
8988
8990
  // For this error fallthrough. Marking parsed will allow advancing to next fragment.
8989
8991
  }
8990
8992
  this.state = State.PARSED;
@@ -19471,7 +19473,7 @@ function assignTrackIdsByGroup(tracks) {
19471
19473
  });
19472
19474
  }
19473
19475
 
19474
- const version = "1.6.0-beta.4.0.canary.11045";
19476
+ const version = "1.6.0-beta.4.0.canary.11048";
19475
19477
 
19476
19478
  // ensure the worker ends up in the bundle
19477
19479
  // If the worker should not be included this gets aliased to empty.js