fixed playpause visual bug I think

This commit is contained in:
KasperRT
2014-12-14 15:45:07 +01:00
parent 0f5f9add5a
commit 8632aefa40

View File

@@ -144,10 +144,15 @@ function onPlayerStateChange(newState) {
beginning = false;
}
if(newState.data == 1 || newState.data == 2)
{
activeButton = document.getElementById("playpause").className;
console.log(activeButton);
if((newState.data == 2 && activeButton == "pause") || (newState.data == 1 && activeButton == "play"))
{
$("#playpause").toggleClass("play");
$("#playpause").toggleClass("pause");
}
}
}
function checkEnd()