1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 10:19:24 +02:00
This commit is contained in:
DanielnetoDotCom 2020-11-10 17:13:17 -03:00
parent 3e18ab8f98
commit d2a01693f8

View file

@ -756,6 +756,10 @@ function setCurrentTime(currentTime) {
function isAutoplayEnabled() {
console.log("Cookies.get('autoplay')", Cookies.get('autoplay'));
if(isLive){
console.log("isAutoplayEnabled always autoplay live contents");
return true;
}else
if ($("#autoplay").length && $("#autoplay").is(':visible')) {
autoplay = $("#autoplay").is(":checked");
console.log("isAutoplayEnabled #autoplay said " + ((autoplay) ? "Yes" : "No"));