fix: dont set duration to 0 when looping

This commit is contained in:
dusk 2023-04-30 05:52:19 +03:00
parent 95ad71161d
commit 59685f8bcf
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -89,10 +89,10 @@
navigator.mediaSession.setPositionState({ position: currentTime, duration });
}}
on:ended={(ev) => {
duration = 0;
currentTime = 0;
switch ($loop) {
case LoopKind.Off:
duration = 0;
nextQueuePosition();
break;
case LoopKind.Once: