1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Do not playnext if is playing

This commit is contained in:
DanielnetoDotCom 2021-03-24 08:42:05 -03:00
parent d3eba9d9bf
commit f02edcb076

View file

@ -694,6 +694,9 @@ function playerPlayIfAutoPlay(currentTime) {
}
function playNext(url) {
if(!player.paused()){
return false;
}
if (playerIsPlayingAds()) {
setTimeout(function () {
playNext(url);