hls.js 1.6.0-beta.2.0.canary.10930 → 1.6.0-beta.2.0.canary.10932

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
@@ -1030,7 +1030,7 @@
1030
1030
  // Some browsers don't allow to use bind on console object anyway
1031
1031
  // fallback to default if needed
1032
1032
  try {
1033
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.2.0.canary.10930");
1033
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.2.0.canary.10932");
1034
1034
  } catch (e) {
1035
1035
  /* log fn threw an exception. All logger methods are no-ops. */
1036
1036
  return createLogger();
@@ -3187,6 +3187,7 @@
3187
3187
  };
3188
3188
  }
3189
3189
  this.base = base;
3190
+ makeEnumerable(this, 'stats');
3190
3191
  }
3191
3192
 
3192
3193
  // setByteRange converts a EXT-X-BYTERANGE attribute into a two element array
@@ -3567,6 +3568,23 @@
3567
3568
  }
3568
3569
  }]);
3569
3570
  }(BaseSegment);
3571
+ function getOwnPropertyDescriptorFromPrototypeChain(object, property) {
3572
+ var prototype = Object.getPrototypeOf(object);
3573
+ if (prototype) {
3574
+ var propertyDescriptor = Object.getOwnPropertyDescriptor(prototype, property);
3575
+ if (propertyDescriptor) {
3576
+ return propertyDescriptor;
3577
+ }
3578
+ return getOwnPropertyDescriptorFromPrototypeChain(prototype, property);
3579
+ }
3580
+ }
3581
+ function makeEnumerable(object, property) {
3582
+ var d = getOwnPropertyDescriptorFromPrototypeChain(object, property);
3583
+ if (d) {
3584
+ d.enumerable = true;
3585
+ Object.defineProperty(object, property, d);
3586
+ }
3587
+ }
3570
3588
 
3571
3589
  /**
3572
3590
  * Provides methods dealing with buffer length retrieval for example.
@@ -4768,8 +4786,6 @@
4768
4786
  }
4769
4787
  var playlistEnd = details.edge;
4770
4788
  if (details.live && this.hls.config.liveDurationInfinity) {
4771
- // Override duration to Infinity
4772
- mediaSource.duration = Infinity;
4773
4789
  var len = details.fragments.length;
4774
4790
  if (len && details.live && !!mediaSource.setLiveSeekableRange) {
4775
4791
  var start = Math.max(0, details.fragmentStart);
@@ -4786,6 +4802,9 @@
4786
4802
  }
4787
4803
  var overrideDuration = (_this$overrides2 = this.overrides) == null ? undefined : _this$overrides2.duration;
4788
4804
  if (overrideDuration) {
4805
+ if (!isFiniteNumber(overrideDuration)) {
4806
+ return null;
4807
+ }
4789
4808
  return {
4790
4809
  duration: overrideDuration
4791
4810
  };
@@ -19961,7 +19980,7 @@
19961
19980
  return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
19962
19981
  }
19963
19982
 
19964
- var version = "1.6.0-beta.2.0.canary.10930";
19983
+ var version = "1.6.0-beta.2.0.canary.10932";
19965
19984
 
19966
19985
  // ensure the worker ends up in the bundle
19967
19986
  // If the worker should not be included this gets aliased to empty.js