Skip to content

Commit

Permalink
fix(player): move to next song if in playlist
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaraa committed May 15, 2024
1 parent 41ccee6 commit 496b678
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions static/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ audioPlayerEl.addEventListener("timeupdate", (event) => {
audioPlayerEl.addEventListener("ended", () => {
switch (loopModes[currentLoopIdx].mode) {
case "OFF":
if (currentPlaylistPlayer) {
currentPlaylistPlayer.next(shuffleSongs, false);
return;
}
stopMuzikk();
break;
case "ONCE":
Expand Down

0 comments on commit 496b678

Please sign in to comment.