Fixed issue with next song not being sent to embedder

This commit is contained in:
Kasper Rynning-Tønnesen
2017-06-09 01:20:52 +02:00
parent 0458d93d96
commit e106d3defd
4 changed files with 11 additions and 22 deletions

View File

@@ -80,6 +80,9 @@ var Player = {
if(embed) {
if(window.parentWindow && window.parentOrigin) {
window.parentWindow.postMessage({type: "np", title: obj.np[0].title}, window.parentOrigin);
if(full_playlist.length > 0) {
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id});
}
}
}