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

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.10812"}`);
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.10812";
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
@@ -21442,7 +21442,11 @@ class PlaylistLoader {
21442
21442
  startTimeOffset,
21443
21443
  variableList
21444
21444
  });
21445
- this.checkAutostartLoad();
21445
+ }
21446
+ onManifestLoaded(event, data) {
21447
+ if (!data.isMediaPlaylist) {
21448
+ this.checkAutostartLoad();
21449
+ }
21446
21450
  }
21447
21451
  handleTrackOrLevelPlaylist(response, stats, context, networkDetails, loader) {
21448
21452
  const hls = this.hls;
@@ -21478,7 +21482,8 @@ class PlaylistLoader {
21478
21482
  sessionKeys: null,
21479
21483
  contentSteering: null,
21480
21484
  startTimeOffset: null,
21481
- variableList: null
21485
+ variableList: null,
21486
+ isMediaPlaylist: true
21482
21487
  });
21483
21488
  }
21484
21489
 
@@ -21923,6 +21928,8 @@ class Hls {
21923
21928
  if (typeof onErrorOut === 'function') {
21924
21929
  this.on(Events.ERROR, onErrorOut, errorController);
21925
21930
  }
21931
+ // Autostart load handler
21932
+ this.on(Events.MANIFEST_LOADED, playListLoader.onManifestLoaded, playListLoader);
21926
21933
  }
21927
21934
  createController(ControllerClass, components) {
21928
21935
  if (ControllerClass) {