mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed issue where chromecast button not showing up when navigating back and forth from channels
This commit is contained in:
2
server/public/assets/dist/embed.min.js
vendored
2
server/public/assets/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
2
server/public/assets/dist/main.min.js
vendored
2
server/public/assets/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -475,8 +475,9 @@ initializeCastApi = function() {
|
||||
}
|
||||
});
|
||||
|
||||
var cast_state = cast.framework.CastContext.getInstance();
|
||||
cast_state.addEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED, function(event){
|
||||
//var cast_state = cast.framework.CastContext.getInstance();
|
||||
|
||||
context.addEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED, function(event){
|
||||
Helper.log("cast state");
|
||||
Helper.log(event.castState);
|
||||
if(event.castState == "NOT_CONNECTED"){
|
||||
@@ -496,6 +497,11 @@ initializeCastApi = function() {
|
||||
cast_ready_connect = false;
|
||||
}
|
||||
});
|
||||
|
||||
if(context.getCastState() == "NOT_CONNECTED") {
|
||||
$(".castButton-unactive").css("display", "block");
|
||||
cast_ready_connect = true;
|
||||
}
|
||||
};
|
||||
|
||||
function hide_native(way){
|
||||
|
||||
Reference in New Issue
Block a user