hls.js 1.6.0-beta.2.0.canary.10923 → 1.6.0-beta.2.0.canary.10924

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.d.mts CHANGED
@@ -978,6 +978,7 @@ export declare class EMEController extends Logger implements ComponentAPI {
978
978
  private requestLicense;
979
979
  private onMediaAttached;
980
980
  private onMediaDetached;
981
+ private _clear;
981
982
  private onManifestLoading;
982
983
  private onManifestLoaded;
983
984
  private removeSession;
package/dist/hls.d.ts CHANGED
@@ -978,6 +978,7 @@ export declare class EMEController extends Logger implements ComponentAPI {
978
978
  private requestLicense;
979
979
  private onMediaAttached;
980
980
  private onMediaDetached;
981
+ private _clear;
981
982
  private onManifestLoading;
982
983
  private onManifestLoaded;
983
984
  private removeSession;
package/dist/hls.js CHANGED
@@ -1059,7 +1059,7 @@
1059
1059
  // Some browsers don't allow to use bind on console object anyway
1060
1060
  // fallback to default if needed
1061
1061
  try {
1062
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.2.0.canary.10923");
1062
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.2.0.canary.10924");
1063
1063
  } catch (e) {
1064
1064
  /* log fn threw an exception. All logger methods are no-ops. */
1065
1065
  return createLogger();
@@ -16311,7 +16311,7 @@
16311
16311
  return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
16312
16312
  }
16313
16313
 
16314
- var version = "1.6.0-beta.2.0.canary.10923";
16314
+ var version = "1.6.0-beta.2.0.canary.10924";
16315
16315
 
16316
16316
  // ensure the worker ends up in the bundle
16317
16317
  // If the worker should not be included this gets aliased to empty.js
@@ -21919,8 +21919,10 @@
21919
21919
  _inheritsLoose(EMEController, _Logger);
21920
21920
  var _proto = EMEController.prototype;
21921
21921
  _proto.destroy = function destroy() {
21922
+ var media = this.media;
21922
21923
  this.unregisterListeners();
21923
21924
  this.onMediaDetached();
21925
+ this._clear(media);
21924
21926
  // Remove any references that could be held in config options or callbacks
21925
21927
  var config = this.config;
21926
21928
  config.requestMediaKeySystemAccessFunc = null;
@@ -22592,15 +22594,17 @@
22592
22594
  media.addEventListener('waitingforkey', this.onWaitingForKey);
22593
22595
  };
22594
22596
  _proto.onMediaDetached = function onMediaDetached() {
22595
- var _this14 = this,
22596
- _media$setMediaKeys;
22597
22597
  var media = this.media;
22598
- var mediaKeysList = this.mediaKeySessions;
22599
22598
  if (media) {
22600
22599
  media.removeEventListener('encrypted', this.onMediaEncrypted);
22601
22600
  media.removeEventListener('waitingforkey', this.onWaitingForKey);
22602
22601
  this.media = null;
22603
22602
  }
22603
+ };
22604
+ _proto._clear = function _clear(media) {
22605
+ var _this14 = this,
22606
+ _media$setMediaKeys;
22607
+ var mediaKeysList = this.mediaKeySessions;
22604
22608
  this._requestLicenseFailureCount = 0;
22605
22609
  this.setMediaKeysQueue = [];
22606
22610
  this.mediaKeySessions = [];
package/dist/hls.js.d.ts CHANGED
@@ -978,6 +978,7 @@ export declare class EMEController extends Logger implements ComponentAPI {
978
978
  private requestLicense;
979
979
  private onMediaAttached;
980
980
  private onMediaDetached;
981
+ private _clear;
981
982
  private onManifestLoading;
982
983
  private onManifestLoaded;
983
984
  private removeSession;