Skip to content

Commit

Permalink
fix: Fix trackschanged event not fired after a license request is den…
Browse files Browse the repository at this point in the history
…ied for some tracks (#5962)

Fixes #4874
  • Loading branch information
avelad authored Dec 1, 2023
1 parent 678bf25 commit 4eba182
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -6462,6 +6462,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
} // if (keyIds.size)

if (tracksChanged) {
this.onTracksChanged_();
const variantsUpdated = this.updateAbrManagerVariants_();
if (!variantsUpdated) {
return;
Expand All @@ -6473,10 +6474,6 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
shaka.log.debug('Choosing new streams after key status changed');
this.chooseVariantAndSwitch_();
}

if (tracksChanged) {
this.onTracksChanged_();
}
}

/**
Expand Down

0 comments on commit 4eba182

Please sign in to comment.