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.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.10930");
1062
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.2.0.canary.10932");
1063
1063
  } catch (e) {
1064
1064
  /* log fn threw an exception. All logger methods are no-ops. */
1065
1065
  return createLogger();
@@ -4235,6 +4235,7 @@
4235
4235
  };
4236
4236
  }
4237
4237
  this.base = base;
4238
+ makeEnumerable(this, 'stats');
4238
4239
  }
4239
4240
 
4240
4241
  // setByteRange converts a EXT-X-BYTERANGE attribute into a two element array
@@ -4615,6 +4616,23 @@
4615
4616
  }
4616
4617
  }]);
4617
4618
  }(BaseSegment);
4619
+ function getOwnPropertyDescriptorFromPrototypeChain(object, property) {
4620
+ var prototype = Object.getPrototypeOf(object);
4621
+ if (prototype) {
4622
+ var propertyDescriptor = Object.getOwnPropertyDescriptor(prototype, property);
4623
+ if (propertyDescriptor) {
4624
+ return propertyDescriptor;
4625
+ }
4626
+ return getOwnPropertyDescriptorFromPrototypeChain(prototype, property);
4627
+ }
4628
+ }
4629
+ function makeEnumerable(object, property) {
4630
+ var d = getOwnPropertyDescriptorFromPrototypeChain(object, property);
4631
+ if (d) {
4632
+ d.enumerable = true;
4633
+ Object.defineProperty(object, property, d);
4634
+ }
4635
+ }
4618
4636
 
4619
4637
  var UINT32_MAX$1 = Math.pow(2, 32) - 1;
4620
4638
  var push = [].push;
@@ -16330,7 +16348,7 @@
16330
16348
  return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
16331
16349
  }
16332
16350
 
16333
- var version = "1.6.0-beta.2.0.canary.10930";
16351
+ var version = "1.6.0-beta.2.0.canary.10932";
16334
16352
 
16335
16353
  // ensure the worker ends up in the bundle
16336
16354
  // If the worker should not be included this gets aliased to empty.js
@@ -19284,8 +19302,6 @@
19284
19302
  }
19285
19303
  var playlistEnd = details.edge;
19286
19304
  if (details.live && this.hls.config.liveDurationInfinity) {
19287
- // Override duration to Infinity
19288
- mediaSource.duration = Infinity;
19289
19305
  var len = details.fragments.length;
19290
19306
  if (len && details.live && !!mediaSource.setLiveSeekableRange) {
19291
19307
  var start = Math.max(0, details.fragmentStart);
@@ -19302,6 +19318,9 @@
19302
19318
  }
19303
19319
  var overrideDuration = (_this$overrides2 = this.overrides) == null ? undefined : _this$overrides2.duration;
19304
19320
  if (overrideDuration) {
19321
+ if (!isFiniteNumber(overrideDuration)) {
19322
+ return null;
19323
+ }
19305
19324
  return {
19306
19325
  duration: overrideDuration
19307
19326
  };