hls.js 1.5.8-0.canary.10161 → 1.5.8-0.canary.10164

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
@@ -606,7 +606,7 @@
606
606
  // Some browsers don't allow to use bind on console object anyway
607
607
  // fallback to default if needed
608
608
  try {
609
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10161");
609
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10164");
610
610
  } catch (e) {
611
611
  /* log fn threw an exception. All logger methods are no-ops. */
612
612
  return createLogger();
@@ -2440,6 +2440,9 @@
2440
2440
  var mms = (preferManagedMediaSource || !self.MediaSource) && self.ManagedMediaSource;
2441
2441
  return mms || self.MediaSource || self.WebKitMediaSource;
2442
2442
  }
2443
+ function isManagedMediaSource(source) {
2444
+ return typeof self !== 'undefined' && source === self.ManagedMediaSource;
2445
+ }
2443
2446
 
2444
2447
  // from http://mp4ra.org/codecs.html
2445
2448
  // values indicate codec selection preference (lower is higher priority)
@@ -7484,7 +7487,7 @@
7484
7487
  };
7485
7488
  _this.hls = hls;
7486
7489
  _this.fragmentTracker = fragmentTracker;
7487
- _this.appendSource = hls.config.preferManagedMediaSource && typeof self !== 'undefined' && self.ManagedMediaSource;
7490
+ _this.appendSource = isManagedMediaSource(getMediaSource(hls.config.preferManagedMediaSource));
7488
7491
  _this._initSourceBuffer();
7489
7492
  _this.registerListeners();
7490
7493
  return _this;
@@ -21688,7 +21691,7 @@
21688
21691
  * Get the video-dev/hls.js package version.
21689
21692
  */
21690
21693
  function get() {
21691
- return "1.5.8-0.canary.10161";
21694
+ return "1.5.8-0.canary.10164";
21692
21695
  }
21693
21696
  }, {
21694
21697
  key: "Events",