hls.js 1.6.0-beta.1.0.canary.10766 → 1.6.0-beta.1.0.canary.10767

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
@@ -400,7 +400,7 @@ function enableLogs(debugConfig, context, id) {
400
400
  // Some browsers don't allow to use bind on console object anyway
401
401
  // fallback to default if needed
402
402
  try {
403
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.1.0.canary.10766"}`);
403
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.1.0.canary.10767"}`);
404
404
  } catch (e) {
405
405
  /* log fn threw an exception. All logger methods are no-ops. */
406
406
  return createLogger();
@@ -9791,7 +9791,7 @@ var eventemitter3 = {exports: {}};
9791
9791
  var eventemitter3Exports = eventemitter3.exports;
9792
9792
  var EventEmitter = /*@__PURE__*/getDefaultExportFromCjs(eventemitter3Exports);
9793
9793
 
9794
- const version = "1.6.0-beta.1.0.canary.10766";
9794
+ const version = "1.6.0-beta.1.0.canary.10767";
9795
9795
 
9796
9796
  // ensure the worker ends up in the bundle
9797
9797
  // If the worker should not be included this gets aliased to empty.js
@@ -33360,6 +33360,10 @@ class Hls {
33360
33360
  return;
33361
33361
  }
33362
33362
  this.logger.log(`attachMedia`);
33363
+ if (this._media) {
33364
+ this.logger.warn(`media must be detached before attaching`);
33365
+ this.detachMedia();
33366
+ }
33363
33367
  const attachMediaSource = 'media' in data;
33364
33368
  const media = attachMediaSource ? data.media : data;
33365
33369
  const attachingData = attachMediaSource ? data : {