diff --git a/frontend/src/lib/components/QueueSlider.svelte b/frontend/src/lib/components/QueueSlider.svelte index adbaf45..5df1e8d 100644 --- a/frontend/src/lib/components/QueueSlider.svelte +++ b/frontend/src/lib/components/QueueSlider.svelte @@ -25,7 +25,13 @@ {#if i === 1}
{/if} -{sug.artist}
diff --git a/frontend/src/routes/admin/[id]/+page.svelte b/frontend/src/routes/admin/[id]/+page.svelte index a55e6f8..7041413 100644 --- a/frontend/src/routes/admin/[id]/+page.svelte +++ b/frontend/src/routes/admin/[id]/+page.svelte @@ -73,6 +73,15 @@ queueSongs = songs playingIndex = index } + + function seek(e: Event) { + const target = e.target as HTMLInputElement + const seekTime = parseFloat(target.value) + playerInfo.currentTime = seekTime + if (audioController) { + audioController.currentTime = seekTime + } + } {#if returnError} @@ -85,9 +94,12 @@{formatTime(playerInfo.currentTime)} - {formatTime(playerInfo.duration)}
- +