mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixing the fix that didn't fix the fixed bug?
This commit is contained in:
@@ -111,17 +111,6 @@ function onPlayerStateChange(newState) {
|
||||
console.log("new state: "+newState.data);
|
||||
console.log("beginning: "+beginning);
|
||||
//ytplayer.seekTo(15);
|
||||
if(newState.data === 0)
|
||||
{
|
||||
quickFixCountdown = setTimeout(function(){
|
||||
console.log("trying quickfix");
|
||||
if(ytplayer.getPlayerState() === 0 && wasPaused){
|
||||
console.log("quickfixPlay");
|
||||
startNextSong();
|
||||
wasPaused = false;
|
||||
}
|
||||
},5000);
|
||||
}
|
||||
if((newState.data === 0 && checkEnd()) || (newState.data == 1 && checkEnd()))
|
||||
{
|
||||
console.log("nummer 1");
|
||||
@@ -152,6 +141,17 @@ function onPlayerStateChange(newState) {
|
||||
$("#playpause").toggleClass("pause");
|
||||
}
|
||||
}
|
||||
if(newState.data === 0)
|
||||
{
|
||||
quickFixCountdown = setTimeout(function(){
|
||||
console.log("trying quickfix");
|
||||
if(ytplayer.getPlayerState() === 0){
|
||||
console.log("quickfixPlay");
|
||||
startNextSong();
|
||||
wasPaused = false;
|
||||
}
|
||||
},5000);
|
||||
}
|
||||
}
|
||||
|
||||
function checkEnd()
|
||||
|
||||
Reference in New Issue
Block a user