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.
package/dist/hls.mjs CHANGED
@@ -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();
@@ -9835,7 +9835,7 @@ var eventemitter3 = {exports: {}};
9835
9835
  var eventemitter3Exports = eventemitter3.exports;
9836
9836
  var EventEmitter = /*@__PURE__*/getDefaultExportFromCjs(eventemitter3Exports);
9837
9837
 
9838
- const version = "1.6.0-beta.1.0.canary.10811";
9838
+ const version = "1.6.0-beta.1.0.canary.10812";
9839
9839
 
9840
9840
  // ensure the worker ends up in the bundle
9841
9841
  // If the worker should not be included this gets aliased to empty.js
@@ -32997,7 +32997,11 @@ class PlaylistLoader {
32997
32997
  startTimeOffset,
32998
32998
  variableList
32999
32999
  });
33000
- this.checkAutostartLoad();
33000
+ }
33001
+ onManifestLoaded(event, data) {
33002
+ if (!data.isMediaPlaylist) {
33003
+ this.checkAutostartLoad();
33004
+ }
33001
33005
  }
33002
33006
  handleTrackOrLevelPlaylist(response, stats, context, networkDetails, loader) {
33003
33007
  const hls = this.hls;
@@ -33033,7 +33037,8 @@ class PlaylistLoader {
33033
33037
  sessionKeys: null,
33034
33038
  contentSteering: null,
33035
33039
  startTimeOffset: null,
33036
- variableList: null
33040
+ variableList: null,
33041
+ isMediaPlaylist: true
33037
33042
  });
33038
33043
  }
33039
33044
 
@@ -33384,6 +33389,8 @@ class Hls {
33384
33389
  if (typeof onErrorOut === 'function') {
33385
33390
  this.on(Events.ERROR, onErrorOut, errorController);
33386
33391
  }
33392
+ // Autostart load handler
33393
+ this.on(Events.MANIFEST_LOADED, playListLoader.onManifestLoaded, playListLoader);
33387
33394
  }
33388
33395
  createController(ControllerClass, components) {
33389
33396
  if (ControllerClass) {