mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
Fix ads on playlists
This commit is contained in:
parent
8037b1438a
commit
c8a11d37e6
1 changed files with 2 additions and 1 deletions
|
@ -247,12 +247,13 @@ function reloadAds() {
|
|||
} else {
|
||||
console.log('reloadAds 2 change to ', _adTagUrl);
|
||||
player.ima.changeAdTag(_adTagUrl);
|
||||
player.ima.pauseAd();
|
||||
}
|
||||
console.log('reloadAds ready state ', player.readyState());
|
||||
player.ima.initializeAdDisplayContainer();
|
||||
player.ima.requestAds();
|
||||
player.on('adsready', function () {
|
||||
console.log('reloadAds adisready ');
|
||||
player.ima.resumeAd();
|
||||
player.pause();
|
||||
});
|
||||
}, 1000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue