Fix for allow autoplay in chrome

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-07 15:25:39 +02:00
parent c029bb3887
commit 6b54c8766a

View File

@@ -534,7 +534,9 @@ function disable_debug(){
} }
function embed_code(autoplay, width, height, color, embed_code){ function embed_code(autoplay, width, height, color, embed_code){
return '<iframe src="https://zoff.me/_embed#' + chan.toLowerCase() + '&' + color + autoplay + embed_videoonly + '" width="' + width + 'px" height="' + height + 'px"></iframe>'; var autoplay_add = "";
if(autoplay == "&autoplay") autoplay_add = 'allow="autoplay"';
return '<iframe src="https://zoff.me/_embed#' + chan.toLowerCase() + '&' + color + autoplay + embed_videoonly + '" width="' + width + 'px" height="' + height + 'px" ' + autoplay_add + '></iframe>';
} }
function change_offline(enabled, already_offline){ function change_offline(enabled, already_offline){