Skip to content

Commit 89314e5

Browse files
committed
bugfix, if loop queue after last, next is first
1 parent 3a7d656 commit 89314e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/library/core.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,9 @@ export class PlayerCore {
998998
if (this._queue[this._currentIndex + 1] !== undefined) {
999999
soundIndex = this._currentIndex + 1;
10001000
sound = this._queue[soundIndex];
1001+
} else if (this._loopQueue) {
1002+
soundIndex = 0;
1003+
sound = this._queue[soundIndex];
10011004
}
10021005
break;
10031006
case PlayerCore.PLAY_SOUND_PREVIOUS:

0 commit comments

Comments
 (0)