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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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) { $(document).on('touchend', '.search_input', function(event) {
searchTimeout(event); searchTimeout(event);
}); });
} else { } else {*/
$(document).on('keyup', ".search_input", function(event) { $(document).on('keyup', ".search_input", function(event) {
searchTimeout(event); searchTimeout(event);
}); });
} //}
$(document).on("click", ".chat-tab", function(){ $(document).on("click", ".chat-tab", function(){
$("#text-chat-input").focus(); $("#text-chat-input").focus();

View File

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