Forgot to send the current video on next song

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-29 13:04:50 +02:00
parent 642f8c273d
commit d3d03fdb15
2 changed files with 6 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ function receiveMessage(event) {
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id});
}
} catch(e) {
console.log("crash here", e, full_playlist);
}
}
}

View File

@@ -27,7 +27,11 @@ var Player = {
song_title = obj.np[0].title;
duration = obj.np[0].duration;
if(offline && (video_id == "" || video_id == undefined || local_new_channel) && !client){
if(embed) {
try {
window.parentWindow.postMessage({type: "np", title: song_title}, window.parentOrigin);
} catch(e) {}
} else if(offline && (video_id == "" || video_id == undefined || local_new_channel) && !client){
if(obj.conf != undefined) {
conf = obj.conf[0];
}