mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying to quickfix the quickfix
This commit is contained in:
@@ -111,6 +111,17 @@ 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");
|
||||
@@ -141,17 +152,6 @@ function onPlayerStateChange(newState) {
|
||||
$("#playpause").toggleClass("pause");
|
||||
}
|
||||
}
|
||||
if(newState.data === 0)
|
||||
{
|
||||
quickFixCountdown = setTimeout(function(){
|
||||
console.log("trying quickfix");
|
||||
if(ytplayer.getPlayerState() === 0 && wasPaused){
|
||||
console.log("quickfixPlay");
|
||||
startNextSong();
|
||||
wasPaused = false;
|
||||
}
|
||||
},5000);
|
||||
}
|
||||
}
|
||||
|
||||
function checkEnd()
|
||||
|
||||
@@ -4,4 +4,8 @@
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="static/js/iscroll-min.js"></script>
|
||||
<script type="text/javascript" src="static/js/main-min.js"></script>
|
||||
<script type="text/javascript" src="static/js/list.js"></script>
|
||||
<script type="text/javascript" src="static/js/playercontrols.js"></script>
|
||||
<script type="text/javascript" src="static/js/youtube.js"></script>
|
||||
<script type="text/javascript" src="static/js/search.js"></script>
|
||||
<script type="text/javascript" src="static/js/admin.js"></script>
|
||||
Reference in New Issue
Block a user