Showing next song

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-18 19:39:17 +01:00
parent 2080de37fe
commit 692b0361c6
2 changed files with 3 additions and 2 deletions

View File

@@ -252,6 +252,7 @@ initializeCastApi = function() {
castSession.addMessageListener("urn:x-cast:zoff.no", chromecastListener)
chromecastAvailable = true;
castSession.sendMessage("urn:x-cast:zoff.no", {type: "loadVideo", videoId: video_id, seekTo: Player.player.getCurrentTime()})
castSession.sendMessage("urn:x-cast:zoff.no", {type: "nextVideo", videoId: full_playlist[0].id, title: full_playlist[0].title})
console.log(full_playlist[0]);
hide_native(1);