Stop the last song from restarting and freezing service-mode lyrics
This commit is contained in:
@@ -18,7 +18,8 @@
|
||||
pending.set(element, request); return request;
|
||||
}
|
||||
function resume(element, clock) {
|
||||
if (!element || !element.paused || pending.has(element)) return;
|
||||
// An ended element is finished, not interrupted: play() would restart it from 0.
|
||||
if (!element || !element.paused || element.ended || pending.has(element)) return;
|
||||
if (clock && element !== clock && needsAlignment(element.currentTime, clock.currentTime)) element.currentTime = clock.currentTime;
|
||||
return play(element);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user