diff --git a/public/host.html b/public/host.html index faed142..4751fac 100644 --- a/public/host.html +++ b/public/host.html @@ -124,7 +124,7 @@ currentIndex = (currentIndex - 1 + musicFiles.length) % musicFiles.length; const prevFile = musicFiles[currentIndex]; - const url = `http://${serverIP}:8889/music/${encodeURIComponent(nextFile)}`; + const url = `http://${serverIP}:8889/music/${encodeURIComponent(prevFile)}`; audioPlayer.src = url; conn.send(JSON.stringify({ type: "select", file: prevFile }));