Cheap workaround for playing embedded player

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-07 14:44:17 +02:00
parent d154d80036
commit 2672aa8490

View File

@@ -129,6 +129,16 @@ window.addEventListener("load", function() {
setup_now_playing_listener();
setup_list_listener();
if(autoplay) {
setTimeout(function() {
if(videoSource == "youtube") {
Player.player.playVideo();
} else {
Player.soundcloud_player.play();
}
}, 1000);
}
window.onYouTubeIframeAPIReady = Player.onYouTubeIframeAPIReady;
socket.on("toast", toast);