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

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
@@ -637,7 +637,7 @@
637
637
  // Some browsers don't allow to use bind on console object anyway
638
638
  // fallback to default if needed
639
639
  try {
640
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10161");
640
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10162");
641
641
  } catch (e) {
642
642
  /* log fn threw an exception. All logger methods are no-ops. */
643
643
  return createLogger();
@@ -2890,6 +2890,9 @@
2890
2890
  var mms = (preferManagedMediaSource || !self.MediaSource) && self.ManagedMediaSource;
2891
2891
  return mms || self.MediaSource || self.WebKitMediaSource;
2892
2892
  }
2893
+ function isManagedMediaSource(source) {
2894
+ return typeof self !== 'undefined' && source === self.ManagedMediaSource;
2895
+ }
2893
2896
 
2894
2897
  // from http://mp4ra.org/codecs.html
2895
2898
  // values indicate codec selection preference (lower is higher priority)
@@ -19486,7 +19489,7 @@
19486
19489
  };
19487
19490
  _this.hls = hls;
19488
19491
  _this.fragmentTracker = fragmentTracker;
19489
- _this.appendSource = hls.config.preferManagedMediaSource && typeof self !== 'undefined' && self.ManagedMediaSource;
19492
+ _this.appendSource = isManagedMediaSource(getMediaSource(hls.config.preferManagedMediaSource));
19490
19493
  _this._initSourceBuffer();
19491
19494
  _this.registerListeners();
19492
19495
  return _this;
@@ -30462,7 +30465,7 @@
30462
30465
  * Get the video-dev/hls.js package version.
30463
30466
  */
30464
30467
  function get() {
30465
- return "1.5.8-0.canary.10161";
30468
+ return "1.5.8-0.canary.10162";
30466
30469
  }
30467
30470
  }, {
30468
30471
  key: "Events",