Trying to get iphone playbutton to work

This commit is contained in:
Kasper Rynning-Tønnesen
2017-01-22 17:35:08 +01:00
parent 0c1353b660
commit aa7ed10522
4 changed files with 8 additions and 7 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

@@ -264,6 +264,7 @@ initializeCastApi = function() {
receiverApplicationId: "E6856E24",
autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED});
var context = cast.framework.CastContext.getInstance();
$(".castButton").css("display", "block");
context.addEventListener(
cast.framework.CastContextEventType.SESSION_STATE_CHANGED,
function(event) {

View File

@@ -293,7 +293,7 @@ var Player = {
player_ready = true;
if(!window.MSStream)
{
if(Helper.mobilecheck()){
if(Helper.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent)){
$("#playpause").css("visibility", "hidden");
$("#playpause").css("pointer-events", "none");
}