hls.js 1.6.0-beta.3.0.canary.10973 → 1.6.0-beta.3.0.canary.10976

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
@@ -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.3.0.canary.10973");
1062
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.3.0.canary.10976");
1063
1063
  } catch (e) {
1064
1064
  /* log fn threw an exception. All logger methods are no-ops. */
1065
1065
  return createLogger();
@@ -16358,7 +16358,7 @@
16358
16358
  return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
16359
16359
  }
16360
16360
 
16361
- var version = "1.6.0-beta.3.0.canary.10973";
16361
+ var version = "1.6.0-beta.3.0.canary.10976";
16362
16362
 
16363
16363
  // ensure the worker ends up in the bundle
16364
16364
  // If the worker should not be included this gets aliased to empty.js
@@ -23901,6 +23901,22 @@
23901
23901
  el.removeEventListener(type, listener);
23902
23902
  }
23903
23903
 
23904
+ var replacer = function replacer() {
23905
+ var known = new WeakSet();
23906
+ return function (_, value) {
23907
+ if (typeof value === 'object' && value !== null) {
23908
+ if (known.has(value)) {
23909
+ return;
23910
+ }
23911
+ known.add(value);
23912
+ }
23913
+ return value;
23914
+ };
23915
+ };
23916
+ var stringify = function stringify(object) {
23917
+ return JSON.stringify(object, replacer());
23918
+ };
23919
+
23904
23920
  function playWithCatch(media) {
23905
23921
  media == null ? void 0 : media.play().catch(function () {
23906
23922
  /* no-op */
@@ -24299,7 +24315,7 @@
24299
24315
  }
24300
24316
  }
24301
24317
  var attachMediaSourceData = player.transferMedia();
24302
- this.log("transfer MediaSource from " + player + " " + JSON.stringify(attachMediaSourceData));
24318
+ this.log("transfer MediaSource from " + player + " " + stringify(attachMediaSourceData));
24303
24319
  this.detachedData = attachMediaSourceData;
24304
24320
  } else if (toSegment && playerMedia) {
24305
24321
  this.shouldPlay || (this.shouldPlay = !playerMedia.paused);
@@ -24326,11 +24342,11 @@
24326
24342
  } else {
24327
24343
  logFromSource = "<unknown>";
24328
24344
  }
24329
- this.log("transferring to " + (isAssetPlayer ? player : 'Primary') + "\nMediaSource " + JSON.stringify(attachMediaSourceData) + " from " + logFromSource);
24345
+ this.log("transferring to " + (isAssetPlayer ? player : 'Primary') + "\nMediaSource " + stringify(attachMediaSourceData) + " from " + logFromSource);
24330
24346
  if (!attachMediaSourceData) {
24331
24347
  if (detachedMediaSource) {
24332
24348
  attachMediaSourceData = this.detachedData;
24333
- this.log("using detachedData: MediaSource " + JSON.stringify(attachMediaSourceData));
24349
+ this.log("using detachedData: MediaSource " + stringify(attachMediaSourceData));
24334
24350
  } else if (!this.detachedData || this.hls.media === media) {
24335
24351
  // Media is attaching when `detachedData` and `hls.media` are populated. Detach to clear the MediaSource.
24336
24352
  this.hls.detachMedia();