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 committed Jan 16, 2024
1 parent e9c11cd commit 243c113
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/playback_rate_selection.js
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 243c113

Please sign in to comment.