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:
parent
d3eba9d9bf
commit
f02edcb076
1 changed files with 3 additions and 0 deletions
|
@ -694,6 +694,9 @@ function playerPlayIfAutoPlay(currentTime) {
|
|||
}
|
||||
|
||||
function playNext(url) {
|
||||
if(!player.paused()){
|
||||
return false;
|
||||
}
|
||||
if (playerIsPlayingAds()) {
|
||||
setTimeout(function () {
|
||||
playNext(url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue