Tag: google ima

VIDEOJS:在每个播放列表项目之前播放前贴片添加

我使用videojs-playlist插件以及Google的videojs-ima插件。 除了我只在第一个video之前收到预加载广告外,一切都可以顺利进行。 我想在播放列表中的每个video之前添加一个 。 基本设置是样板,但供参考: this.player = videojs('currentvideo', { autoplay : true, fluid : true }); this.player.playlist(this.playlist); this.player.playlist.autoadvance(5); const skippable_linear = {google's test ad}; const options = { id: 'currentvideo', adTagUrl: skippable_linear, debug : true }; this.player.ima( options ); this.player.ima.requestAds(); 我尝试过使用各种方式手动调用“结束”事件处理程序中的广告,例如再次调用requestAds : const _this = this; this.player.on( 'ended', function(){ /* some other stuff */ _this.player.ima.requestAds(); […]