mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Fix ads on playlists
This commit is contained in:
parent
8d44f61f97
commit
a99b6c8695
1 changed files with 20 additions and 22 deletions
|
@ -246,10 +246,9 @@ function reloadAds() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function reloadAdsIfIsReady() {
|
function reloadAdsIfIsReady() {
|
||||||
console.log('reloadAdsIfIsReady player.readyState() = '+player.readyState());
|
console.log('reloadAdsIfIsReady player.readyState() = ' + player.readyState());
|
||||||
clearTimeout(_reloadAdsTimeout);
|
clearTimeout(_reloadAdsTimeout);
|
||||||
if (player.ima) {
|
if (player.ima) {
|
||||||
if (player.readyState() > 2) {
|
|
||||||
console.log('reloadAdsIfIsReady is ready');
|
console.log('reloadAdsIfIsReady is ready');
|
||||||
try {
|
try {
|
||||||
var adTagUrl;
|
var adTagUrl;
|
||||||
|
@ -272,7 +271,6 @@ function reloadAdsIfIsReady() {
|
||||||
reloadAdsIfIsReady();
|
reloadAdsIfIsReady();
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue