Trying without the fix

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-07 14:45:35 +02:00
parent 59fcc35a47
commit 653bebf8c1

View File

@@ -14,6 +14,7 @@ var fix_too_far = false;
var beginning = false; var beginning = false;
var soundcloud_loading = false; var soundcloud_loading = false;
var firstLoad = ""; var firstLoad = "";
var videoSource = "";
var list_html = document.getElementById("list-song-html").innerHTML; var list_html = document.getElementById("list-song-html").innerHTML;
var w_p = true; var w_p = true;
var lazy_load = false; var lazy_load = false;
@@ -129,6 +130,7 @@ window.addEventListener("load", function() {
setup_now_playing_listener(); setup_now_playing_listener();
setup_list_listener(); setup_list_listener();
/*
if(autoplay) { if(autoplay) {
setTimeout(function() { setTimeout(function() {
if(videoSource == "youtube") { if(videoSource == "youtube") {
@@ -137,7 +139,7 @@ window.addEventListener("load", function() {
Player.soundcloud_player.play(); Player.soundcloud_player.play();
} }
}, 1000); }, 1000);
} }*/
window.onYouTubeIframeAPIReady = Player.onYouTubeIframeAPIReady; window.onYouTubeIframeAPIReady = Player.onYouTubeIframeAPIReady;
socket.on("toast", toast); socket.on("toast", toast);