1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00

npm update

This commit is contained in:
Daniel Neto 2023-08-12 10:32:47 -03:00
parent 0cdd3e9fee
commit 4696ba952f
1437 changed files with 32727 additions and 1248226 deletions

View file

@ -145,6 +145,10 @@ const PlayerWrapper = function(player, adsPluginSettings, controller) {
this.controller.requestAds.bind(this.controller));
}
if (!this.vjsPlayer.ads) {
window.console.warn('You may be using a version of videojs-contrib-ads ' +
'that is not compatible with your version of video.js.');
}
this.vjsPlayer.ads(adsPluginSettings);
};

View file

@ -50,6 +50,11 @@ const PlayerWrapper = function(player, adsPluginSettings, daiController) {
this.vjsPlayer.on('play', this.onPlay.bind(this));
this.vjsPlayer.on('seeked', this.onSeekEnd.bind(this));
this.vjsPlayer.ready(this.onPlayerReady.bind(this));
if (!this.vjsPlayer.ads) {
window.console.warn('You may be using a version of videojs-contrib-ads ' +
'that is not compatible with your version of video.js.');
}
this.vjsPlayer.ads(adsPluginSettings);
};