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.mjs CHANGED
@@ -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.11046"}`);
406
406
  } catch (e) {
407
407
  /* log fn threw an exception. All logger methods are no-ops. */
408
408
  return createLogger();
@@ -9481,7 +9481,6 @@ class BaseStreamController extends TaskLoop {
9481
9481
  this.fragmentTracker.removeFragmentsInRange(start, Infinity, this.playlistType, false, true);
9482
9482
  }
9483
9483
  updateLevelTiming(frag, part, level, partial) {
9484
- var _this$transmuxer;
9485
9484
  const details = level.details;
9486
9485
  if (!details) {
9487
9486
  this.warn('level.details undefined');
@@ -9512,25 +9511,28 @@ class BaseStreamController extends TaskLoop {
9512
9511
  }
9513
9512
  return result;
9514
9513
  }, false);
9515
- if (!parsed && ((_this$transmuxer = this.transmuxer) == null ? void 0 : _this$transmuxer.error) === null) {
9516
- const error = new Error(`Found no media in fragment ${frag.sn} of ${this.playlistLabel()} ${frag.level} resetting transmuxer to fallback to playlist timing`);
9514
+ if (!parsed) {
9515
+ var _this$transmuxer;
9517
9516
  if (level.fragmentError === 0) {
9518
9517
  // Mark and track the odd empty segment as a gap to avoid reloading
9519
9518
  this.treatAsGap(frag, level);
9520
9519
  }
9521
- this.warn(error.message);
9522
- this.hls.trigger(Events.ERROR, {
9523
- type: ErrorTypes.MEDIA_ERROR,
9524
- details: ErrorDetails.FRAG_PARSING_ERROR,
9525
- fatal: false,
9526
- error,
9527
- frag,
9528
- reason: `Found no media in msn ${frag.sn} of ${this.playlistLabel()} "${level.url}"`
9529
- });
9530
- if (!this.hls) {
9531
- return;
9520
+ if (((_this$transmuxer = this.transmuxer) == null ? void 0 : _this$transmuxer.error) === null) {
9521
+ const error = new Error(`Found no media in fragment ${frag.sn} of ${this.playlistLabel()} ${frag.level} resetting transmuxer to fallback to playlist timing`);
9522
+ this.warn(error.message);
9523
+ this.hls.trigger(Events.ERROR, {
9524
+ type: ErrorTypes.MEDIA_ERROR,
9525
+ details: ErrorDetails.FRAG_PARSING_ERROR,
9526
+ fatal: false,
9527
+ error,
9528
+ frag,
9529
+ reason: `Found no media in msn ${frag.sn} of ${this.playlistLabel()} "${level.url}"`
9530
+ });
9531
+ if (!this.hls) {
9532
+ return;
9533
+ }
9534
+ this.resetTransmuxer();
9532
9535
  }
9533
- this.resetTransmuxer();
9534
9536
  // For this error fallthrough. Marking parsed will allow advancing to next fragment.
9535
9537
  }
9536
9538
  this.state = State.PARSED;
@@ -9973,7 +9975,7 @@ function requireEventemitter3 () {
9973
9975
  var eventemitter3Exports = requireEventemitter3();
9974
9976
  var EventEmitter = /*@__PURE__*/getDefaultExportFromCjs(eventemitter3Exports);
9975
9977
 
9976
- const version = "1.6.0-beta.4.0.canary.11045";
9978
+ const version = "1.6.0-beta.4.0.canary.11046";
9977
9979
 
9978
9980
  // ensure the worker ends up in the bundle
9979
9981
  // If the worker should not be included this gets aliased to empty.js