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.
@@ -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();
@@ -19099,7 +19099,7 @@ class GapController extends Logger {
19099
19099
  }
19100
19100
  }
19101
19101
 
19102
- const version = "1.6.0-beta.1.0.canary.10766";
19102
+ const version = "1.6.0-beta.1.0.canary.10767";
19103
19103
 
19104
19104
  // ensure the worker ends up in the bundle
19105
19105
  // If the worker should not be included this gets aliased to empty.js
@@ -21942,6 +21942,10 @@ class Hls {
21942
21942
  return;
21943
21943
  }
21944
21944
  this.logger.log(`attachMedia`);
21945
+ if (this._media) {
21946
+ this.logger.warn(`media must be detached before attaching`);
21947
+ this.detachMedia();
21948
+ }
21945
21949
  const attachMediaSource = 'media' in data;
21946
21950
  const media = attachMediaSource ? data.media : data;
21947
21951
  const attachingData = attachMediaSource ? data : {