hls.js 1.5.8-0.canary.10046 → 1.5.8-0.canary.10052

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
@@ -613,14 +613,19 @@
613
613
  // Some browsers don't allow to use bind on console object anyway
614
614
  // fallback to default if needed
615
615
  try {
616
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10046");
616
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10052");
617
617
  } catch (e) {
618
618
  /* log fn threw an exception. All logger methods are no-ops. */
619
619
  return createLogger();
620
620
  }
621
+ // global exported logger uses the same functions as new logger without `id`
622
+ keys.forEach(function (key) {
623
+ exportedLogger[key] = getLoggerFn(key, debugConfig);
624
+ });
625
+ } else {
626
+ // Reset global exported logger
627
+ _extends(exportedLogger, newLogger);
621
628
  }
622
- // global exported logger uses the log methods from last call to `enableLogs`
623
- _extends(exportedLogger, newLogger);
624
629
  return newLogger;
625
630
  }
626
631
  var logger = exportedLogger;
@@ -8459,6 +8464,7 @@
8459
8464
  };
8460
8465
  _proto.onMediaDetaching = function onMediaDetaching() {
8461
8466
  this.stopCapping();
8467
+ this.media = null;
8462
8468
  };
8463
8469
  _proto.detectPlayerSize = function detectPlayerSize() {
8464
8470
  if (this.media) {
@@ -12603,7 +12609,6 @@
12603
12609
  this.initPTS = [];
12604
12610
  };
12605
12611
  _proto.onHandlerDestroying = function onHandlerDestroying() {
12606
- this.hls.off(Events.MANIFEST_LOADED, this.onManifestLoaded, this);
12607
12612
  this.stopLoad();
12608
12613
  _TaskLoop.prototype.onHandlerDestroying.call(this);
12609
12614
  // @ts-ignore
@@ -12779,7 +12784,9 @@
12779
12784
  throw new Error('init load aborted, missing levels');
12780
12785
  }
12781
12786
  var stats = data.frag.stats;
12782
- this.state = State.IDLE;
12787
+ if (this.state !== State.STOPPED) {
12788
+ this.state = State.IDLE;
12789
+ }
12783
12790
  data.frag.data = new Uint8Array(data.payload);
12784
12791
  stats.parsing.start = stats.buffering.start = self.performance.now();
12785
12792
  stats.parsing.end = stats.buffering.end = self.performance.now();
@@ -21459,7 +21466,7 @@
21459
21466
  * Get the video-dev/hls.js package version.
21460
21467
  */
21461
21468
  function get() {
21462
- return "1.5.8-0.canary.10046";
21469
+ return "1.5.8-0.canary.10052";
21463
21470
  }
21464
21471
  }, {
21465
21472
  key: "Events",