1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +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) { function playNext(url) {
if(!player.paused()){
return false;
}
if (playerIsPlayingAds()) { if (playerIsPlayingAds()) {
setTimeout(function () { setTimeout(function () {
playNext(url); playNext(url);