mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Seekto is working better
This commit is contained in:
@@ -52,13 +52,14 @@ function setup_youtube_listener(channel)
|
||||
ytplayer.loadVideoById(video_id);
|
||||
setBGimage(video_id);
|
||||
notifyUser(video_id, song_title);
|
||||
ytplayer.seekTo(seekTo);
|
||||
if(paused)
|
||||
ytplayer.pauseVideo();
|
||||
}else
|
||||
console.log("like");
|
||||
if(!paused)
|
||||
ytplayer.playVideo();
|
||||
if(ytplayer.getDuration() > seekTo)
|
||||
if(ytplayer.getDuration() > seekTo || ytplayer.getDuration() == 0)
|
||||
ytplayer.seekTo(seekTo);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user