Embed: chromecast

This commit is contained in:
Cat 2023-12-13 16:29:24 +01:00 committed by Thulinma
parent a3521a992d
commit 564de0ef12
8 changed files with 435 additions and 14 deletions

View file

@ -927,6 +927,10 @@ function MistVideo(streamName,options) {
];
for (var i in events) {
MistUtil.event.addListener(MistVideo.video,events[i],function(e){
if (e.message && (e.message == "chromecast")) {
//if the event originates from the chromecast, it is already printed by the chromecast's log passthrough
return;
}
MistVideo.log("Player event fired: "+e.type);
});
}
@ -1301,7 +1305,7 @@ function MistVideo(streamName,options) {
if (MistVideo.destroyed) { return; }
onStreamInfo(JSON.parse(d));
},function(xhr){
var msg = "Connection failed: the media server may be offline";
var msg = "Connection failed: the media server at "+MistVideo.options.host+" may be offline";
MistVideo.showError(msg,{reload:30});
if (!MistVideo.info) {
MistUtil.event.send("initializeFailed",null,options.target);