Skip to content

Commit

Permalink
Revert "switch instantly to alternative main audio"
Browse files Browse the repository at this point in the history
This reverts commit 94bdda3.
  • Loading branch information
brandonocasey committed Apr 6, 2021
1 parent 94bdda3 commit 5a485ab
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/media-groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,8 @@ export const onGroupChanged = (type, settings) => () => {
return;
}

if (activeGroup) {
mediaType.lastGroup_ = activeGroup;
}
if (activeTrack) {
mediaType.lastTrack_ = activeTrack;
}
mediaType.lastGroup_ = activeGroup;
mediaType.lastTrack_ = activeTrack;

stopLoaders(segmentLoader, mediaType);

Expand Down Expand Up @@ -167,12 +163,8 @@ export const onTrackChanged = (type, settings) => () => {
return;
}

if (activeGroup) {
mediaType.lastGroup_ = activeGroup;
}
if (activeTrack) {
mediaType.lastTrack_ = activeTrack;
}
mediaType.lastGroup_ = activeGroup;
mediaType.lastTrack_ = activeTrack;

stopLoaders(segmentLoader, mediaType);

Expand Down

0 comments on commit 5a485ab

Please sign in to comment.