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.
@@ -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();
@@ -8214,7 +8214,7 @@ class CapLevelController {
8214
8214
  hls.logger.log(`Setting autoLevelCapping to ${maxLevel}: ${levels[maxLevel].height}p@${levels[maxLevel].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`);
8215
8215
  }
8216
8216
  hls.autoLevelCapping = maxLevel;
8217
- if (hls.autoLevelCapping > this.autoLevelCapping && this.streamController) {
8217
+ if (hls.autoLevelEnabled && hls.autoLevelCapping > this.autoLevelCapping && this.streamController) {
8218
8218
  // if auto level capping has a higher value for the previous one, flush the buffer using nextLevelSwitch
8219
8219
  // usually happen when the user go to the fullscreen mode.
8220
8220
  this.streamController.nextLevelSwitch();
@@ -20123,7 +20123,7 @@ class Hls {
20123
20123
  * Get the video-dev/hls.js package version.
20124
20124
  */
20125
20125
  static get version() {
20126
- return "1.5.7-0.canary.10018";
20126
+ return "1.5.7-0.canary.10021";
20127
20127
  }
20128
20128
 
20129
20129
  /**