diff --git a/src/controller/abr-controller.ts b/src/controller/abr-controller.ts index 3792904c6e5..224eb4f092f 100644 --- a/src/controller/abr-controller.ts +++ b/src/controller/abr-controller.ts @@ -772,7 +772,8 @@ class AbrController implements AbrComponentAPI { (!upSwitch && currentFrameRate > 0 && currentFrameRate < levelInfo.frameRate) || - !levelInfo.supportedResult?.decodingInfoResults?.[0].smooth + (levelInfo.supportedResult && + !levelInfo.supportedResult.decodingInfoResults?.[0].smooth) ) { levelsSkipped.push(i); continue; diff --git a/tests/functional/auto/setup.js b/tests/functional/auto/setup.js index 8c7d26b67be..44b76df8f36 100644 --- a/tests/functional/auto/setup.js +++ b/tests/functional/auto/setup.js @@ -649,7 +649,7 @@ describe(`testing hls.js playback in the browser on "${browserDescription}"`, fu ); } - if (stream.abr && !HlsjsLightBuild) { + if (stream.abr) { it( `should "smooth switch" to highest level and still play after 2s for ${stream.description}`, testSmoothSwitch.bind(null, url, config)