Something is wrong with the damn button

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-27 17:16:56 +01:00
parent 4583822ff5
commit a049d04cac
2 changed files with 4 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

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