showing youtubeplayer on mobile to fix nonplaying error

This commit is contained in:
Kasper Rynning-Tønnesen
2016-02-09 21:22:30 +01:00
parent 373b0e8048
commit a3f420535e
4 changed files with 4 additions and 4 deletions

View File

@@ -1219,7 +1219,7 @@ nav ul li:hover, nav ul li.active {
}
#player{
display:none;
/*display:none;*/
}
.hide-on-small-only{

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -170,7 +170,7 @@ var Youtube = {
$("#controls").css("opacity", "1");
$(".playlist").css("opacity", "1");
Youtube.ytplayer.loadVideoById(video_id);
if(autoplay) Youtube.ytplayer.playVideo();
if(autoplay && !window.mobilecheck()) Youtube.ytplayer.playVideo();
Youtube.durationSetter();
if(embed){
setTimeout(function(){