🐛 fix: Skip flag for loop

This commit is contained in:
2024-08-18 17:12:29 +07:00
parent 738a9b710b
commit f6b1d68afe

View File

@@ -70,13 +70,15 @@ export class Player {
this.previousAudioInformation = this.currentAudioInformation;
if (this.loopMode === LoopMode.Current) {
if (this.loopMode === LoopMode.Current && !skip) {
this._createStream(
this.currentAudioInformation as AudioInformation,
this.currentAudioInformation?.url as string,
0,
true,
);
this._skipFlag = false;
return;
}