mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Moved where the durationsetter is initiated
This commit is contained in:
@@ -51,8 +51,10 @@ var Youtube = {
|
||||
if(paused)
|
||||
Youtube.ytplayer.pauseVideo();
|
||||
}
|
||||
if(!paused)
|
||||
if(!paused){
|
||||
Youtube.ytplayer.playVideo();
|
||||
Playercontrols.durationSetter();
|
||||
}
|
||||
if(Youtube.ytplayer.getDuration() > seekTo || Youtube.ytplayer.getDuration() == 0)
|
||||
Youtube.ytplayer.seekTo(seekTo);
|
||||
Youtube.after_load = video_id;
|
||||
@@ -163,6 +165,7 @@ var Youtube = {
|
||||
$(".playlist").css("opacity", "1");
|
||||
Youtube.ytplayer.loadVideoById(video_id);
|
||||
Youtube.ytplayer.playVideo();
|
||||
Playercontrols.durationSetter();
|
||||
Youtube.ytplayer.seekTo(seekTo);
|
||||
}
|
||||
Youtube.readyLooks();
|
||||
|
||||
Reference in New Issue
Block a user