We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 8d5f30fa authored by Jonas Haraldsson's avatar Jonas Haraldsson

add audio.error event listener

This should make the player skip any songs it cant play
parent 5defe747
......@@ -79,6 +79,7 @@ function playerReady() {
loadSong(0);
audio.pause();
audio.addEventListener("ended", songEnded, false);
audio.addEventListener("error", songEnded, false);
updateProgress();
$("#play").fadeTo("normal", 1);
$("#pause").fadeTo("normal", 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment