Update way of showing play button on android and iPhone

This commit is contained in:
Kasper Rynning-Tønnesen
2017-02-15 16:45:47 +01:00
parent c76e765904
commit aa92447e4e
4 changed files with 14 additions and 12 deletions

View File

@@ -1231,15 +1231,15 @@ function searchTimeout(event) {
}
}
if(/iPad|iPhone|iPod/.test(navigator.userAgent)){
/*if(/iPad|iPhone|iPod/.test(navigator.userAgent)){
$(document).on('touchend', '.search_input', function(event) {
searchTimeout(event);
});
} else {
} else {*/
$(document).on('keyup', ".search_input", function(event) {
searchTimeout(event);
});
}
//}
$(document).on("click", ".chat-tab", function(){
$("#text-chat-input").focus();

View File

@@ -153,6 +153,7 @@ var Player = {
if(Helper.mobilecheck()){
$("#playpause").css("visibility", "visible");
$("#playpause").css("pointer-events", "all");
$("#channel-load").css("display", "none");
}
}, 100);
}
@@ -331,16 +332,17 @@ var Player = {
},
onPlayerReady: function(event) {
$("#channel-load").css("display", "none");
try{
beginning = true;
player_ready = true;
if(!window.MSStream)
{
if(Helper.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent)){
$("#playpause").css("visibility", "hidden");
$("#playpause").css("pointer-events", "none");
}
if(Helper.mobilecheck()){
$("#playpause").css("visibility", "hidden");
$("#playpause").css("pointer-events", "none");
} else {
$("#channel-load").css("display", "none");
}
$("#player").css("opacity", "1");
$("#controls").css("opacity", "1");
$(".playlist").css("opacity", "1");