hls.js 1.6.0-beta.1.0.canary.10811 → 1.6.0-beta.1.0.canary.10813

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.
@@ -400,7 +400,7 @@ function enableLogs(debugConfig, context, id) {
400
400
  // Some browsers don't allow to use bind on console object anyway
401
401
  // fallback to default if needed
402
402
  try {
403
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.1.0.canary.10811"}`);
403
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.1.0.canary.10813"}`);
404
404
  } catch (e) {
405
405
  /* log fn threw an exception. All logger methods are no-ops. */
406
406
  return createLogger();
@@ -19146,7 +19146,7 @@ class GapController extends Logger {
19146
19146
  }
19147
19147
  }
19148
19148
 
19149
- const version = "1.6.0-beta.1.0.canary.10811";
19149
+ const version = "1.6.0-beta.1.0.canary.10813";
19150
19150
 
19151
19151
  // ensure the worker ends up in the bundle
19152
19152
  // If the worker should not be included this gets aliased to empty.js
@@ -21117,6 +21117,7 @@ class PlaylistLoader {
21117
21117
  this.hls = void 0;
21118
21118
  this.loaders = Object.create(null);
21119
21119
  this.variableList = null;
21120
+ this.onManifestLoaded = this.checkAutostartLoad;
21120
21121
  this.hls = hls;
21121
21122
  this.registerListeners();
21122
21123
  }
@@ -21442,7 +21443,6 @@ class PlaylistLoader {
21442
21443
  startTimeOffset,
21443
21444
  variableList
21444
21445
  });
21445
- this.checkAutostartLoad();
21446
21446
  }
21447
21447
  handleTrackOrLevelPlaylist(response, stats, context, networkDetails, loader) {
21448
21448
  const hls = this.hls;
@@ -21468,6 +21468,7 @@ class PlaylistLoader {
21468
21468
  name: '',
21469
21469
  url
21470
21470
  };
21471
+ levelDetails.requestScheduled = stats.loading.start + computeReloadInterval(levelDetails, 0);
21471
21472
  hls.trigger(Events.MANIFEST_LOADED, {
21472
21473
  levels: [singleLevel],
21473
21474
  audioTracks: [],
@@ -21488,9 +21489,6 @@ class PlaylistLoader {
21488
21489
  // extend the context with the new levelDetails property
21489
21490
  context.levelDetails = levelDetails;
21490
21491
  this.handlePlaylistLoaded(levelDetails, response, stats, context, networkDetails, loader);
21491
- if (type === PlaylistContextType.MANIFEST && (!levelDetails.playlistParsingError || !levelDetails.fragments.length && levelDetails.live)) {
21492
- this.checkAutostartLoad();
21493
- }
21494
21492
  }
21495
21493
  handleManifestParsingError(response, context, error, networkDetails, stats) {
21496
21494
  this.hls.trigger(Events.ERROR, {
@@ -21923,6 +21921,8 @@ class Hls {
21923
21921
  if (typeof onErrorOut === 'function') {
21924
21922
  this.on(Events.ERROR, onErrorOut, errorController);
21925
21923
  }
21924
+ // Autostart load handler
21925
+ this.on(Events.MANIFEST_LOADED, playListLoader.onManifestLoaded, playListLoader);
21926
21926
  }
21927
21927
  createController(ControllerClass, components) {
21928
21928
  if (ControllerClass) {