From edf6057d77ec513f504ceabb91f41b70e17d3797 Mon Sep 17 00:00:00 2001 From: NoCrypt <57245077+NoCrypt@users.noreply.github.com> Date: Thu, 12 Sep 2024 09:58:08 +0700 Subject: [PATCH] feat: playback rate dropdown --- common/views/Player/Player.svelte | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/common/views/Player/Player.svelte b/common/views/Player/Player.svelte index b412c67..be184d2 100644 --- a/common/views/Player/Player.svelte +++ b/common/views/Player/Player.svelte @@ -21,7 +21,7 @@ import { swipeControls } from '@/modules/swipecontrol.js'; import { volumeScroll } from '@/modules/volumescroll.js'; import GestureLock from '@/components/GestureLock.svelte'; - import { ArrowDown, ArrowUp, Captions, Cast, CircleHelp, Contrast, FastForward, RefreshCw, Keyboard, List, ListMusic, ListVideo, Maximize, Minimize, Pause, PictureInPicture, PictureInPicture2, Play, Proportions, RefreshCcw, Rewind, RotateCcw, RotateCw, ScreenShare, SkipBack, SkipForward, Users, Volume1, Volume2, VolumeX, Lock } from 'lucide-svelte' + import { ArrowDown, ArrowUp, Captions, Cast, CircleHelp, Contrast, FastForward, RefreshCw, Keyboard, List, ListMusic, ListVideo, Maximize, Minimize, Pause, PictureInPicture, PictureInPicture2, Play, Proportions, RefreshCcw, Rewind, RotateCcw, RotateCw, ScreenShare, SkipBack, SkipForward, Users, Volume1, Volume2, VolumeX, Lock, CircleGauge, Minus, Plus } from 'lucide-svelte' const emit = createEventDispatcher() @@ -1241,20 +1241,34 @@ -
{toTS(targetTime, safeduration > 3600 ? 2 : 3)} / {toTS(safeduration - targetTime, safeduration > 3600 ? 2 : 3)}
- {#if playbackRate !== 1} +
{toTS(targetTime, safeduration > 3600 ? 2 : 3)} / {toTS(safeduration - targetTime, safeduration > 3600 ? 2 : 3)}
+ {#if video} video.load()}> {/if} + {#if SUPPORTS.isAndroid} - (isLocked = true)}> - - - {/if} + (isLocked = true)}> + + + {/if} (showKeybinds = true)}>