googleads / videojs-ima

IMA SDK Plugin for Video.js
Apache License 2.0
450 stars 284 forks source link

the reasons why in autoplay-mode player.ima.initializeAdDisplayContainer() has never been called #857

Closed dioramayuanito closed 4 years ago

dioramayuanito commented 4 years ago

are there any reasons why?

thanks...

dioramayuanito commented 4 years ago

i got warning like this : [ 0.020s] [ima.common.CompanionAdsManager] Sufficient time not provided for initialization of AdDisplayContainer before request ads. if i play in autoplay-mode. but in non-autoplay-mode that warning was dissappear

arnaudcasame commented 4 years ago

Hi,

This warning comes from the IMA SDK for HTML5 debug library, it doesn't affect the Videojs-IMA plugin in any way, you can safely ignore this warning. For the player.ima.initializeAdDisplayContainer() method to be called, the ad playback must be initiated by the user's action (click the play button or the player's area). In an autoplay context the ad playback begins without any user's action.

dioramayuanito commented 4 years ago

thanks a lot sir arnaud

dioramayuanito commented 4 years ago

Hello Mr. Arnaud,

i'm sorry, i open again this issue. i just wanna make sure: what happen if we call player.ima.initializeAdDisplayContainer in autoplay mode without user clicking play button/player's area?

dioramayuanito commented 4 years ago

I have trouble in Moat Tracker Integration, while in autoplay mode. Their js doesnt run properly in autoplay mode. but when i change the player to run in non-autoplay then their js runs well.

i have assumption their js lib needs adDisplayContainer to run before we call their js initialization. Thanks a lot Arnaud and team...

dioramayuanito commented 4 years ago

ok i got the clue now. if i want to call Moat Init after adDisplayContainer.initialize() , i should use manual adBreak...