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

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.
@@ -402,7 +402,7 @@ function enableLogs(debugConfig, context, id) {
402
402
  // Some browsers don't allow to use bind on console object anyway
403
403
  // fallback to default if needed
404
404
  try {
405
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.2.0.canary.10930"}`);
405
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.2.0.canary.10931"}`);
406
406
  } catch (e) {
407
407
  /* log fn threw an exception. All logger methods are no-ops. */
408
408
  return createLogger();
@@ -10138,8 +10138,6 @@ transfer tracks: ${JSON.stringify(transferredTracks, (key, value) => key === 'in
10138
10138
  }
10139
10139
  const playlistEnd = details.edge;
10140
10140
  if (details.live && this.hls.config.liveDurationInfinity) {
10141
- // Override duration to Infinity
10142
- mediaSource.duration = Infinity;
10143
10141
  const len = details.fragments.length;
10144
10142
  if (len && details.live && !!mediaSource.setLiveSeekableRange) {
10145
10143
  const start = Math.max(0, details.fragmentStart);
@@ -10156,6 +10154,9 @@ transfer tracks: ${JSON.stringify(transferredTracks, (key, value) => key === 'in
10156
10154
  }
10157
10155
  const overrideDuration = (_this$overrides2 = this.overrides) == null ? undefined : _this$overrides2.duration;
10158
10156
  if (overrideDuration) {
10157
+ if (!isFiniteNumber(overrideDuration)) {
10158
+ return null;
10159
+ }
10159
10160
  return {
10160
10161
  duration: overrideDuration
10161
10162
  };
@@ -19340,7 +19341,7 @@ function assignTrackIdsByGroup(tracks) {
19340
19341
  });
19341
19342
  }
19342
19343
 
19343
- const version = "1.6.0-beta.2.0.canary.10930";
19344
+ const version = "1.6.0-beta.2.0.canary.10931";
19344
19345
 
19345
19346
  // ensure the worker ends up in the bundle
19346
19347
  // If the worker should not be included this gets aliased to empty.js