mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-09-24 08:49:06 +00:00
Trying to get iphone playbutton to work
This commit is contained in:
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+4
-4
File diff suppressed because one or more lines are too long
@@ -264,6 +264,7 @@ initializeCastApi = function() {
|
|||||||
receiverApplicationId: "E6856E24",
|
receiverApplicationId: "E6856E24",
|
||||||
autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED});
|
autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED});
|
||||||
var context = cast.framework.CastContext.getInstance();
|
var context = cast.framework.CastContext.getInstance();
|
||||||
|
$(".castButton").css("display", "block");
|
||||||
context.addEventListener(
|
context.addEventListener(
|
||||||
cast.framework.CastContextEventType.SESSION_STATE_CHANGED,
|
cast.framework.CastContextEventType.SESSION_STATE_CHANGED,
|
||||||
function(event) {
|
function(event) {
|
||||||
|
|||||||
+1
-1
@@ -293,7 +293,7 @@ var Player = {
|
|||||||
player_ready = true;
|
player_ready = true;
|
||||||
if(!window.MSStream)
|
if(!window.MSStream)
|
||||||
{
|
{
|
||||||
if(Helper.mobilecheck()){
|
if(Helper.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent)){
|
||||||
$("#playpause").css("visibility", "hidden");
|
$("#playpause").css("visibility", "hidden");
|
||||||
$("#playpause").css("pointer-events", "none");
|
$("#playpause").css("pointer-events", "none");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user