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.light.js CHANGED
@@ -1028,7 +1028,7 @@
1028
1028
  // Some browsers don't allow to use bind on console object anyway
1029
1029
  // fallback to default if needed
1030
1030
  try {
1031
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.1.0.canary.10766");
1031
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.1.0.canary.10767");
1032
1032
  } catch (e) {
1033
1033
  /* log fn threw an exception. All logger methods are no-ops. */
1034
1034
  return createLogger();
@@ -19709,7 +19709,7 @@
19709
19709
  return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
19710
19710
  }
19711
19711
 
19712
- var version = "1.6.0-beta.1.0.canary.10766";
19712
+ var version = "1.6.0-beta.1.0.canary.10767";
19713
19713
 
19714
19714
  // ensure the worker ends up in the bundle
19715
19715
  // If the worker should not be included this gets aliased to empty.js
@@ -22497,6 +22497,10 @@
22497
22497
  return;
22498
22498
  }
22499
22499
  this.logger.log("attachMedia");
22500
+ if (this._media) {
22501
+ this.logger.warn("media must be detached before attaching");
22502
+ this.detachMedia();
22503
+ }
22500
22504
  var attachMediaSource = 'media' in data;
22501
22505
  var media = attachMediaSource ? data.media : data;
22502
22506
  var attachingData = attachMediaSource ? data : {