hls.js 1.5.8-0.canary.10044 → 1.5.8-0.canary.10049

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
@@ -644,14 +644,19 @@
644
644
  // Some browsers don't allow to use bind on console object anyway
645
645
  // fallback to default if needed
646
646
  try {
647
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10044");
647
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10049");
648
648
  } catch (e) {
649
649
  /* log fn threw an exception. All logger methods are no-ops. */
650
650
  return createLogger();
651
651
  }
652
+ // global exported logger uses the same functions as new logger without `id`
653
+ keys.forEach(function (key) {
654
+ exportedLogger[key] = getLoggerFn(key, debugConfig);
655
+ });
656
+ } else {
657
+ // Reset global exported logger
658
+ _extends(exportedLogger, newLogger);
652
659
  }
653
- // global exported logger uses the log methods from last call to `enableLogs`
654
- _extends(exportedLogger, newLogger);
655
660
  return newLogger;
656
661
  }
657
662
  var logger = exportedLogger;
@@ -9736,7 +9741,6 @@
9736
9741
  this.initPTS = [];
9737
9742
  };
9738
9743
  _proto.onHandlerDestroying = function onHandlerDestroying() {
9739
- this.hls.off(Events.MANIFEST_LOADED, this.onManifestLoaded, this);
9740
9744
  this.stopLoad();
9741
9745
  _TaskLoop.prototype.onHandlerDestroying.call(this);
9742
9746
  // @ts-ignore
@@ -9912,7 +9916,9 @@
9912
9916
  throw new Error('init load aborted, missing levels');
9913
9917
  }
9914
9918
  var stats = data.frag.stats;
9915
- this.state = State.IDLE;
9919
+ if (this.state !== State.STOPPED) {
9920
+ this.state = State.IDLE;
9921
+ }
9916
9922
  data.frag.data = new Uint8Array(data.payload);
9917
9923
  stats.parsing.start = stats.buffering.start = self.performance.now();
9918
9924
  stats.parsing.end = stats.buffering.end = self.performance.now();
@@ -23229,6 +23235,7 @@
23229
23235
  };
23230
23236
  _proto.onMediaDetaching = function onMediaDetaching() {
23231
23237
  this.stopCapping();
23238
+ this.media = null;
23232
23239
  };
23233
23240
  _proto.detectPlayerSize = function detectPlayerSize() {
23234
23241
  if (this.media) {
@@ -30213,7 +30220,7 @@
30213
30220
  * Get the video-dev/hls.js package version.
30214
30221
  */
30215
30222
  function get() {
30216
- return "1.5.8-0.canary.10044";
30223
+ return "1.5.8-0.canary.10049";
30217
30224
  }
30218
30225
  }, {
30219
30226
  key: "Events",