Minor changes to how mobile loads and starts the video

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-27 22:00:14 +01:00
parent adb312bc58
commit 8cd0e9dba5
5 changed files with 9 additions and 5 deletions

View File

@@ -70,7 +70,10 @@ var Youtube = {
break;
case 1:
playing = true;
if(beginning && window.mobilecheck()){
ytplayer.pauseVideo();
beginning = false;
}
if(document.getElementById("play").className.split(" ").length == 1)
$("#play").toggleClass("hide");
if(document.getElementById("pause").className.split(" ").length == 2)
@@ -118,6 +121,7 @@ var Youtube = {
},
onPlayerReady: function(event) {
beginning = true;
player_ready = true;
/*if(!window.mobilecheck())
{*/