hls.js 1.5.14-0.canary.10675 → 1.5.14-0.canary.10676

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.
@@ -440,7 +440,7 @@ function enableLogs(debugConfig, context, id) {
440
440
  // Some browsers don't allow to use bind on console object anyway
441
441
  // fallback to default if needed
442
442
  try {
443
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.14-0.canary.10675"}`);
443
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.14-0.canary.10676"}`);
444
444
  } catch (e) {
445
445
  /* log fn threw an exception. All logger methods are no-ops. */
446
446
  return createLogger();
@@ -10198,7 +10198,7 @@ function changeTypeSupported() {
10198
10198
  return typeof (sourceBuffer == null ? void 0 : (_sourceBuffer$prototy = sourceBuffer.prototype) == null ? void 0 : _sourceBuffer$prototy.changeType) === 'function';
10199
10199
  }
10200
10200
 
10201
- const version = "1.5.14-0.canary.10675";
10201
+ const version = "1.5.14-0.canary.10676";
10202
10202
 
10203
10203
  // ensure the worker ends up in the bundle
10204
10204
  // If the worker should not be included this gets aliased to empty.js
@@ -16419,6 +16419,10 @@ class StreamController extends BaseStreamController {
16419
16419
  return;
16420
16420
  }
16421
16421
  const currentLevel = levels[frag.level];
16422
+ if (!currentLevel) {
16423
+ this.warn(`Level ${frag.level} not found on progress`);
16424
+ return;
16425
+ }
16422
16426
  const details = currentLevel.details;
16423
16427
  if (!details) {
16424
16428
  this.warn(`Dropping fragment ${frag.sn} of level ${frag.level} after level details were reset`);