mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-21 00:22:08 +00:00
fix: #396
This commit is contained in:
parent
3b3f278d1e
commit
a67a204cd1
1 changed files with 8 additions and 5 deletions
|
|
@ -517,17 +517,17 @@
|
||||||
type: 'icon'
|
type: 'icon'
|
||||||
},
|
},
|
||||||
BracketLeft: {
|
BracketLeft: {
|
||||||
fn: () => (playbackRate -= 0.1),
|
fn: () => { playbackRate = video.defaultPlaybackRate -= 0.1 },
|
||||||
id: 'history',
|
id: 'history',
|
||||||
type: 'icon'
|
type: 'icon'
|
||||||
},
|
},
|
||||||
BracketRight: {
|
BracketRight: {
|
||||||
fn: () => (playbackRate += 0.1),
|
fn: () => { playbackRate = video.defaultPlaybackRate += 0.1 },
|
||||||
id: 'update',
|
id: 'update',
|
||||||
type: 'icon'
|
type: 'icon'
|
||||||
},
|
},
|
||||||
Backslash: {
|
Backslash: {
|
||||||
fn: () => (playbackRate = 1),
|
fn: () => { playbackRate = video.defaultPlaybackRate = 1 },
|
||||||
id: 'schedule',
|
id: 'schedule',
|
||||||
type: 'icon'
|
type: 'icon'
|
||||||
}
|
}
|
||||||
|
|
@ -1050,8 +1050,11 @@
|
||||||
<span class='material-symbols-outlined ctrl' title='Mute [M]' data-name='toggleMute' use:click={toggleMute}> {muted ? 'volume_off' : 'volume_up'} </span>
|
<span class='material-symbols-outlined ctrl' title='Mute [M]' data-name='toggleMute' use:click={toggleMute}> {muted ? 'volume_off' : 'volume_up'} </span>
|
||||||
<input class='ctrl h-full custom-range' type='range' min='0' max='1' step='any' data-name='setVolume' bind:value={volume} />
|
<input class='ctrl h-full custom-range' type='range' min='0' max='1' step='any' data-name='setVolume' bind:value={volume} />
|
||||||
</div>
|
</div>
|
||||||
<div class='ts mr-auto'>{toTS(targetTime, safeduration > 3600 ? 2 : 3)} / {toTS(safeduration - targetTime, safeduration > 3600 ? 2 : 3)}</div>
|
<div class='ts'>{toTS(targetTime, safeduration > 3600 ? 2 : 3)} / {toTS(safeduration - targetTime, safeduration > 3600 ? 2 : 3)}</div>
|
||||||
<span class='material-symbols-outlined ctrl keybinds' title='Keybinds [`]' use:click={() => (showKeybinds = true)}> keyboard </span>
|
{#if playbackRate !== 1}
|
||||||
|
<div class='ts'>x{playbackRate.toFixed(1)}</div>
|
||||||
|
{/if}
|
||||||
|
<span class='ml-auto material-symbols-outlined ctrl keybinds' title='Keybinds [`]' use:click={() => (showKeybinds = true)}> keyboard </span>
|
||||||
{#if 'audioTracks' in HTMLVideoElement.prototype && video?.audioTracks?.length > 1}
|
{#if 'audioTracks' in HTMLVideoElement.prototype && video?.audioTracks?.length > 1}
|
||||||
<div class='dropdown dropup with-arrow' use:click={toggleDropdown}>
|
<div class='dropdown dropup with-arrow' use:click={toggleDropdown}>
|
||||||
<span class='material-symbols-outlined ctrl' title='Audio Tracks'>
|
<span class='material-symbols-outlined ctrl' title='Audio Tracks'>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue