mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying to get iphone playbutton to work
This commit is contained in:
4
public/dist/embed.min.js
vendored
4
public/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
8
public/dist/main.min.js
vendored
8
public/dist/main.min.js
vendored
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) {
|
||||||
|
|||||||
@@ -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