hls.js 1.5.2 → 1.5.3

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
@@ -411,7 +411,7 @@ function enableLogs(debugConfig, id) {
411
411
  // Some browsers don't allow to use bind on console object anyway
412
412
  // fallback to default if needed
413
413
  try {
414
- exportedLogger.log(`Debug logs enabled for "${id}" in hls.js version ${"1.5.2"}`);
414
+ exportedLogger.log(`Debug logs enabled for "${id}" in hls.js version ${"1.5.3"}`);
415
415
  } catch (e) {
416
416
  exportedLogger = fakeLogger;
417
417
  }
@@ -7339,7 +7339,7 @@ class AbrController {
7339
7339
  const ttfbEstimateSec = this.bwEstimator.getEstimateTTFB() / 1000;
7340
7340
  const levelsSkipped = [];
7341
7341
  for (let i = maxAutoLevel; i >= minAutoLevel; i--) {
7342
- var _levelInfo$supportedR, _levelInfo$supportedR2;
7342
+ var _levelInfo$supportedR;
7343
7343
  const levelInfo = levels[i];
7344
7344
  const upSwitch = i > selectionBaseLevel;
7345
7345
  if (!levelInfo) {
@@ -7370,7 +7370,7 @@ class AbrController {
7370
7370
 
7371
7371
  // skip candidates which change codec-family or video-range,
7372
7372
  // and which decrease or increase frame-rate for up and down-switch respectfully
7373
- if (currentCodecSet && levelInfo.codecSet !== currentCodecSet || currentVideoRange && levelInfo.videoRange !== currentVideoRange || upSwitch && currentFrameRate > levelInfo.frameRate || !upSwitch && currentFrameRate > 0 && currentFrameRate < levelInfo.frameRate || !((_levelInfo$supportedR = levelInfo.supportedResult) != null && (_levelInfo$supportedR2 = _levelInfo$supportedR.decodingInfoResults) != null && _levelInfo$supportedR2[0].smooth)) {
7373
+ if (currentCodecSet && levelInfo.codecSet !== currentCodecSet || currentVideoRange && levelInfo.videoRange !== currentVideoRange || upSwitch && currentFrameRate > levelInfo.frameRate || !upSwitch && currentFrameRate > 0 && currentFrameRate < levelInfo.frameRate || levelInfo.supportedResult && !((_levelInfo$supportedR = levelInfo.supportedResult.decodingInfoResults) != null && _levelInfo$supportedR[0].smooth)) {
7374
7374
  levelsSkipped.push(i);
7375
7375
  continue;
7376
7376
  }
@@ -27682,7 +27682,7 @@ class Hls {
27682
27682
  * Get the video-dev/hls.js package version.
27683
27683
  */
27684
27684
  static get version() {
27685
- return "1.5.2";
27685
+ return "1.5.3";
27686
27686
  }
27687
27687
 
27688
27688
  /**