mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
This commit is contained in:
parent
3e18ab8f98
commit
d2a01693f8
1 changed files with 4 additions and 0 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue