Skip to content

Commit

Permalink
fix(FEC-10980): Video tracks selection miss active flag (#602)
Browse files Browse the repository at this point in the history
Issue: doesn't keep the active flag after changing filtering unique values.
Solution: keep the active flag for the same quality.
  • Loading branch information
Yuvalke committed May 13, 2021
1 parent ca8e2f2 commit ff00c9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ class Settings extends Component {
const arrLength = qualities.length - 1;
const previousTrack = qualities[arrLength];
if (arrLength > -1 && currentTrack.label === previousTrack.label) {
currentTrack.active = currentTrack.active || previousTrack.active;
if (currentTrack.bandwidth > previousTrack.bandwidth) {
qualities[arrLength] = currentTrack;
}
Expand Down

0 comments on commit ff00c9a

Please sign in to comment.