Fixed issue with mobile not playing

This commit is contained in:
Kasper Rynning-Tønnesen
2017-08-28 19:20:41 +02:00
parent 8041de8e56
commit 47e018bb99
3 changed files with 7 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -187,16 +187,10 @@ var Player = {
}
playing = true;
if(beginning && Helper.mobilecheck() && !chromecastAvailable){
Player.pauseVideo();
//Player.pauseVideo();
beginning = false;
mobile_beginning = false;
setTimeout(function(){
if(Helper.mobilecheck()){
$("#playpause").css("visibility", "visible");
$("#playpause").css("pointer-events", "all");
$("#channel-load").css("display", "none");
}
}, 100);
}
if(!embed && window.location.pathname != "/" && !chromecastAvailable) Helper.addClass("#player_overlay", "hide");
if(window.location.pathname != "/"){
@@ -365,6 +359,9 @@ var Player = {
$("#playpause").css("visibility", "hidden");
$("#playpause").css("pointer-events", "none");
$("#player").css("opacity", "1");
$("#playpause").css("visibility", "visible");
$("#playpause").css("pointer-events", "all");
$("#channel-load").css("display", "none");
} else {
//$("#channel-load").css("display", "none");
}