-
-
Notifications
You must be signed in to change notification settings - Fork 296
Open
Description
Steps to reproduce:
- /play "Kraftwerk - Computerworld (Full Album)"
- /play "Kraftwerk - Computerworld (Full Album)"
- /next
- /now-playing
Cause:
When forward is called in player.ts, it seems the player becomes idle while the next song is loading, and this result in forward being called a second time in onAudioPlayerIdle
Fix:
async forward(skip: number): Promise<void> {
this.manualForward(skip);
try {
if (this.getCurrent() && this.status !== STATUS.PAUSED) {
let oldStatus = this.status; // NEW
this.status = STATUS.IDLE; // NEW
await this.play();
this.status = oldStatus; // NEW
} else {
I won't do a PR here cause I fixed it in my fork already
Metadata
Metadata
Assignees
Labels
No labels