mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Use best connection to chromecast
This commit is contained in:
@@ -435,6 +435,13 @@ function setup_no_connection_listener(){
|
||||
});
|
||||
}
|
||||
|
||||
function updateChromecastMetadata() {
|
||||
if(!chromecastAvailable) return;
|
||||
var image = 'https://img.youtube.com/vi/'+video_id+'/mqdefault.jpg';
|
||||
if(Player.np.thumbnail) image = Player.np.thumbnail;
|
||||
chrome.cast.media.GenericMediaMetadata({metadataType: 0, title:Player.np.title, image: image, images: [image]});
|
||||
}
|
||||
|
||||
function setup_now_playing_listener(){
|
||||
socket.on("np", Player.now_playing_listener);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user