mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Cheap workaround for playing embedded player
This commit is contained in:
@@ -129,6 +129,16 @@ window.addEventListener("load", function() {
|
|||||||
setup_now_playing_listener();
|
setup_now_playing_listener();
|
||||||
setup_list_listener();
|
setup_list_listener();
|
||||||
|
|
||||||
|
if(autoplay) {
|
||||||
|
setTimeout(function() {
|
||||||
|
if(videoSource == "youtube") {
|
||||||
|
Player.player.playVideo();
|
||||||
|
} else {
|
||||||
|
Player.soundcloud_player.play();
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
|
||||||
window.onYouTubeIframeAPIReady = Player.onYouTubeIframeAPIReady;
|
window.onYouTubeIframeAPIReady = Player.onYouTubeIframeAPIReady;
|
||||||
socket.on("toast", toast);
|
socket.on("toast", toast);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user