Skip to content

Commit

Permalink
fix(UI): Update the playbackrate on loaded event (#6090)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Jan 11, 2024
1 parent 23fb2f5 commit 9b9ff16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/playback_rate_selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ shaka.ui.PlaybackRateSelection = class extends shaka.ui.SettingsMenu {
this.updateLocalizedStrings_();
});

this.eventManager.listen(this.player, 'loaded', () => {
this.updatePlaybackRateSelection_(this.player.getPlaybackRate());
});

this.eventManager.listen(this.player, 'ratechange', () => {
this.updatePlaybackRateSelection_(this.player.getPlaybackRate());
});
Expand Down

0 comments on commit 9b9ff16

Please sign in to comment.