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:
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -7,7 +7,6 @@ var Playercontrols = {
|
||||
if(window.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream){
|
||||
$("#controls").appendTo("#playbar");
|
||||
}
|
||||
Playercontrols.durationSetter();
|
||||
},
|
||||
|
||||
initControls: function()
|
||||
|
||||
@@ -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