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}