hls.js 1.5.7-0.canary.10018 → 1.5.7-0.canary.10021

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
@@ -512,7 +512,7 @@ function enableLogs(debugConfig, context, id) {
512
512
  // Some browsers don't allow to use bind on console object anyway
513
513
  // fallback to default if needed
514
514
  try {
515
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.7-0.canary.10018"}`);
515
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.7-0.canary.10021"}`);
516
516
  } catch (e) {
517
517
  /* log fn threw an exception. All logger methods are no-ops. */
518
518
  return createLogger();
@@ -22686,7 +22686,7 @@ class CapLevelController {
22686
22686
  hls.logger.log(`Setting autoLevelCapping to ${maxLevel}: ${levels[maxLevel].height}p@${levels[maxLevel].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`);
22687
22687
  }
22688
22688
  hls.autoLevelCapping = maxLevel;
22689
- if (hls.autoLevelCapping > this.autoLevelCapping && this.streamController) {
22689
+ if (hls.autoLevelEnabled && hls.autoLevelCapping > this.autoLevelCapping && this.streamController) {
22690
22690
  // if auto level capping has a higher value for the previous one, flush the buffer using nextLevelSwitch
22691
22691
  // usually happen when the user go to the fullscreen mode.
22692
22692
  this.streamController.nextLevelSwitch();
@@ -28713,7 +28713,7 @@ class Hls {
28713
28713
  * Get the video-dev/hls.js package version.
28714
28714
  */
28715
28715
  static get version() {
28716
- return "1.5.7-0.canary.10018";
28716
+ return "1.5.7-0.canary.10021";
28717
28717
  }
28718
28718
 
28719
28719
  /**