Added option for autoplay in embed

This commit is contained in:
Kasper Rynning-Tønnesen
2016-01-27 17:45:34 +01:00
parent a9a7709b30
commit 5539fcc394
8 changed files with 30 additions and 13 deletions

View File

@@ -26,6 +26,7 @@ var began = false;
var i = -1;
var lazy_load = true;
var embed = false;
var autoplay = true;
var id;
var full_playlist;
@@ -191,7 +192,7 @@ function init(){
}, 1000);
$("#embed-button").css("display", "inline-block");
$("#embed-area").val('<embed src="https://zoff.no/embed.html#' + chan.toLowerCase() + '" width="600px" height="300px">');
$("#embed-area").val('<embed src="https://zoff.no/embed.html#' + chan.toLowerCase() + '&autplay" width="600px" height="300px">');
}