Zoff for mobile might be up?

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-27 17:15:54 +01:00
parent 011fbf4530
commit 4583822ff5
3 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -6,6 +6,7 @@ var Playercontrols = {
console.log(window.mobilecheck())
console.log($("#controls"));
$("#controls").appendTo("#playbar");
ytplayer.pauseVideo();
//$("#controls").remove();
}
setInterval(Playercontrols.durationSetter, 1000);

View File

@@ -38,7 +38,7 @@ var Youtube = {
if(paused)
ytplayer.pauseVideo();
}
if(!paused)
if(!paused && !window.mobilecheck())
ytplayer.playVideo();
if(ytplayer.getDuration() > seekTo || ytplayer.getDuration() == 0)
ytplayer.seekTo(seekTo);
@@ -125,7 +125,8 @@ var Youtube = {
$("#controls").css("opacity", "1");
$(".playlist").css("opacity", "1");
ytplayer.loadVideoById(video_id);
ytplayer.playVideo();
if(!window.mobilecheck())
ytplayer.playVideo();
ytplayer.seekTo(seekTo);
//}
Youtube.readyLooks();