From 724166e3bdf6a0df65847dc7e9299e8a61202d1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Fri, 20 Dec 2024 12:39:41 +0100 Subject: [PATCH] fix(UI): Allow 1x playback rate when default playback rate is not x1 (#7787) Fixes https://github.com/shaka-project/shaka-player/issues/7757 --- ui/playback_rate_selection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/playback_rate_selection.js b/ui/playback_rate_selection.js index 4f79fb906a..7ade29233a 100644 --- a/ui/playback_rate_selection.js +++ b/ui/playback_rate_selection.js @@ -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);