From a67a204cd1722b0ec601567bc2b2a3886885db80 Mon Sep 17 00:00:00 2001 From: ThaUnknown <6506529+ThaUnknown@users.noreply.github.com> Date: Mon, 8 Jan 2024 23:24:32 +0100 Subject: [PATCH] fix: #396 --- common/views/Player/Player.svelte | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/common/views/Player/Player.svelte b/common/views/Player/Player.svelte index 30a059f..1daed25 100644 --- a/common/views/Player/Player.svelte +++ b/common/views/Player/Player.svelte @@ -517,17 +517,17 @@ type: 'icon' }, BracketLeft: { - fn: () => (playbackRate -= 0.1), + fn: () => { playbackRate = video.defaultPlaybackRate -= 0.1 }, id: 'history', type: 'icon' }, BracketRight: { - fn: () => (playbackRate += 0.1), + fn: () => { playbackRate = video.defaultPlaybackRate += 0.1 }, id: 'update', type: 'icon' }, Backslash: { - fn: () => (playbackRate = 1), + fn: () => { playbackRate = video.defaultPlaybackRate = 1 }, id: 'schedule', type: 'icon' } @@ -1050,8 +1050,11 @@ {muted ? 'volume_off' : 'volume_up'} -
{toTS(targetTime, safeduration > 3600 ? 2 : 3)} / {toTS(safeduration - targetTime, safeduration > 3600 ? 2 : 3)}
- (showKeybinds = true)}> keyboard +
{toTS(targetTime, safeduration > 3600 ? 2 : 3)} / {toTS(safeduration - targetTime, safeduration > 3600 ? 2 : 3)}
+ {#if playbackRate !== 1} +
x{playbackRate.toFixed(1)}
+ {/if} + (showKeybinds = true)}> keyboard {#if 'audioTracks' in HTMLVideoElement.prototype && video?.audioTracks?.length > 1}