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:
parent
d3eba9d9bf
commit
f02edcb076
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue