Skip to content

Commit

Permalink
Fix regression in hls.light.js selection (#6155)
Browse files Browse the repository at this point in the history
Fixes #6151
  • Loading branch information
robwalch authored Jan 29, 2024
1 parent f2f2b4a commit 1781ae7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/controller/abr-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/auto/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1781ae7

Please sign in to comment.