mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixing issues with chromecastbutton
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
6
public/dist/main.min.js
vendored
6
public/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -277,6 +277,8 @@ function init(){
|
|||||||
$(".castButton-unactive").css("display", "none");
|
$(".castButton-unactive").css("display", "none");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(chromecastReady);
|
||||||
|
|
||||||
if(chromecastAvailable){
|
if(chromecastAvailable){
|
||||||
hide_native(1);
|
hide_native(1);
|
||||||
} else if(chromecastReady) {
|
} else if(chromecastReady) {
|
||||||
@@ -349,6 +351,11 @@ initializeCastApi = function() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(cast.framework.CastContext.getInstance().getCastState() == "NOT_CONNECTED"){
|
||||||
|
$(".castButton-unactive").css("display", "block");
|
||||||
|
}
|
||||||
|
|
||||||
var cast_state = cast.framework.CastContext.getInstance();
|
var cast_state = cast.framework.CastContext.getInstance();
|
||||||
cast_state.addEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED, function(event){
|
cast_state.addEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED, function(event){
|
||||||
if(event.castState == "NOT_CONNECTED"){
|
if(event.castState == "NOT_CONNECTED"){
|
||||||
|
|||||||
Reference in New Issue
Block a user