mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Forgot to send the current video on next song
This commit is contained in:
@@ -88,7 +88,7 @@ function receiveMessage(event) {
|
|||||||
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id});
|
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id});
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.log("crash here", e, full_playlist);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,11 @@ var Player = {
|
|||||||
song_title = obj.np[0].title;
|
song_title = obj.np[0].title;
|
||||||
duration = obj.np[0].duration;
|
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) {
|
if(obj.conf != undefined) {
|
||||||
conf = obj.conf[0];
|
conf = obj.conf[0];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user