Skip to content

Commit

Permalink
fix(UI): Allow 1x playback rate when default playback rate is not x1 (#…
Browse files Browse the repository at this point in the history
…7787)

Fixes #7757
  • Loading branch information
avelad authored Dec 20, 2024
1 parent ac568a4 commit 724166e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/playback_rate_selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ shaka.ui.PlaybackRateSelection = class extends shaka.ui.SettingsMenu {

this.eventManager.listen(button, 'click', () => {
const rate = this.playbackRates_.get(rateStr);
if (rate == 1) {
if (rate == this.video.defaultPlaybackRate) {
this.player.cancelTrickPlay();
} else {
this.player.trickPlay(rate, /* useTrickPlayTrack= */ false);
Expand Down

0 comments on commit 724166e

Please sign in to comment.