mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Chromecast next private fix
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
@@ -262,7 +262,13 @@ var Player = {
|
|||||||
duration = next_song.duration;
|
duration = next_song.duration;
|
||||||
Player.getTitle(song_title, viewers);
|
Player.getTitle(song_title, viewers);
|
||||||
Player.setBGimage(video_id);
|
Player.setBGimage(video_id);
|
||||||
Player.loadVideoById(video_id);
|
if(chromecastAvailable){
|
||||||
|
castSession.sendMessage("urn:x-cast:zoff.no", {type: "loadVideo", videoId: video_id});
|
||||||
|
chrome.cast.media.GenericMediaMetadata({metadataType: "GENERIC", title:song_title, image: 'https://img.youtube.com/vi/'+video_id+'/mqdefault.jpg'});
|
||||||
|
chrome.cast.Image('https://img.youtube.com/vi/'+id+'/mqdefault.jpg');
|
||||||
|
} else {
|
||||||
|
Player.loadVideoById(video_id);
|
||||||
|
}
|
||||||
List.channel_function({type:"song_change", time: time});
|
List.channel_function({type:"song_change", time: time});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user