From 40f8ba1f7f8f85861feacaee1c07c1914d675e66 Mon Sep 17 00:00:00 2001 From: 007hacky007 <007hacky007@users.noreply.github.com> Date: Thu, 24 Sep 2026 17:02:06 +0200 Subject: [PATCH] Offer the full playback rate list on Safari (#24444) --- web/src/components/player/VideoControls.tsx | 4 ++-- web/src/views/settings/UiSettingsView.tsx | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/web/src/components/player/VideoControls.tsx b/web/src/components/player/VideoControls.tsx index 729c0bb389..badd934572 100644 --- a/web/src/components/player/VideoControls.tsx +++ b/web/src/components/player/VideoControls.tsx @@ -1,6 +1,6 @@ import { useCallback, useMemo, useRef, useState } from "react"; import { LuFolderX } from "react-icons/lu"; -import { isMobileOnly, isSafari } from "react-device-detect"; +import { isMobileOnly } from "react-device-detect"; import { LuPause, LuPlay } from "react-icons/lu"; import { DropdownMenu, @@ -54,7 +54,7 @@ const CONTROLS_DEFAULT: VideoControls = { snapshot: false, fullscreen: false, }; -const PLAYBACK_RATE_DEFAULT = isSafari ? [0.5, 1, 2] : [0.5, 1, 2, 4, 8, 16]; +const PLAYBACK_RATE_DEFAULT = [0.5, 1, 2, 4, 8, 16]; const MIN_ITEMS_WRAP = 6; type VideoControlsProps = { diff --git a/web/src/views/settings/UiSettingsView.tsx b/web/src/views/settings/UiSettingsView.tsx index fcb5b46de5..9e9f4a96b0 100644 --- a/web/src/views/settings/UiSettingsView.tsx +++ b/web/src/views/settings/UiSettingsView.tsx @@ -17,7 +17,6 @@ import { useUserPersistence, deleteUserNamespacedKey, } from "@/hooks/use-user-persistence"; -import { isSafari } from "react-device-detect"; import { Select, SelectContent, @@ -132,7 +131,7 @@ export default function UiSettingsView() { const { auth } = useContext(AuthContext); const username = auth?.user?.username; - const PLAYBACK_RATE_DEFAULT = isSafari ? [0.5, 1, 2] : [0.5, 1, 2, 4, 8, 16]; + const PLAYBACK_RATE_DEFAULT = [0.5, 1, 2, 4, 8, 16]; const clearStoredLayouts = useCallback(() => { if (!config) {