fix: dont set duration to 0 when looping
This commit is contained in:
parent
95ad71161d
commit
59685f8bcf
@ -89,10 +89,10 @@
|
|||||||
navigator.mediaSession.setPositionState({ position: currentTime, duration });
|
navigator.mediaSession.setPositionState({ position: currentTime, duration });
|
||||||
}}
|
}}
|
||||||
on:ended={(ev) => {
|
on:ended={(ev) => {
|
||||||
duration = 0;
|
|
||||||
currentTime = 0;
|
currentTime = 0;
|
||||||
switch ($loop) {
|
switch ($loop) {
|
||||||
case LoopKind.Off:
|
case LoopKind.Off:
|
||||||
|
duration = 0;
|
||||||
nextQueuePosition();
|
nextQueuePosition();
|
||||||
break;
|
break;
|
||||||
case LoopKind.Once:
|
case LoopKind.Once:
|
||||||
|
Loading…
Reference in New Issue
Block a user