Skip to content

Commit

Permalink
Fix regression in hls.light.js selection (#6157)
Browse files Browse the repository at this point in the history
Fixes #6151
  • Loading branch information
robwalch authored Jan 30, 2024
1 parent d88eff3 commit 529fe15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/controller/abr-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,8 @@ class AbrController extends Logger implements AbrComponentAPI {
(!upSwitch &&
currentFrameRate > 0 &&
currentFrameRate < levelInfo.frameRate) ||
!levelInfo.supportedResult?.decodingInfoResults?.[0].smooth
(levelInfo.supportedResult &&
!levelInfo.supportedResult.decodingInfoResults?.[0].smooth)
) {
levelsSkipped.push(i);
continue;
Expand Down
6 changes: 1 addition & 5 deletions tests/functional/auto/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,11 +664,7 @@ describe(`testing hls.js playback in the browser on "${browserDescription}"`, fu
);
}

if (
stream.abr &&
!HlsjsLightBuild &&
(!isSafari || !isStreamsWithOverlappingAppends)
) {
if (stream.abr && (!isSafari || !isStreamsWithOverlappingAppends)) {
it(
`should "smooth switch" to highest level and still play after 2s for ${stream.description}`,
testSmoothSwitch.bind(null, url, config)
Expand Down

0 comments on commit 529fe15

Please sign in to comment.