Add Rewind and Forward
This commit is contained in:
parent
20499ca5a1
commit
6a7ba60ca9
1 changed files with 2 additions and 0 deletions
|
@ -239,11 +239,13 @@
|
||||||
<p class="border p-2">{progressPercent().toFixed(2)}%</p>
|
<p class="border p-2">{progressPercent().toFixed(2)}%</p>
|
||||||
<Button class="border p-2" onclick={() => changeVolume(-0.05)}>-</Button>
|
<Button class="border p-2" onclick={() => changeVolume(-0.05)}>-</Button>
|
||||||
<Button class="border p-2" onclick={() => changeVolume(0.05)}>+</Button>
|
<Button class="border p-2" onclick={() => changeVolume(0.05)}>+</Button>
|
||||||
|
<Button class="border p-2" onclick={() => currentSong.source.currentTime -= 5}>{"<<"}</Button>
|
||||||
{#if isPaused}
|
{#if isPaused}
|
||||||
<Button onclick={play}>Play</Button>
|
<Button onclick={play}>Play</Button>
|
||||||
{:else}
|
{:else}
|
||||||
<Button onclick={pause}>Pause</Button>
|
<Button onclick={pause}>Pause</Button>
|
||||||
{/if}
|
{/if}
|
||||||
|
<Button class="border p-2" onclick={() => currentSong.source.currentTime += 5}>{">>"}</Button>
|
||||||
<Button class="border p-2" onclick={() => mode.next()}>{mode.get()}</Button>
|
<Button class="border p-2" onclick={() => mode.next()}>{mode.get()}</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue