html5 ima sdk and videojs error, after ads the main video can't continue play

1,678 views
Skip to first unread message

sorry chou

unread,
Jan 27, 2016, 7:15:00 AM1/27/16
to Interactive Media Ads SDK
Hi ALL:

When I use videojs and ima sdks, preroll ads not start before main video and when ads end the main video can't continue play, my test url is http://tpe.sales-frontier.com/test/live/ima.php

pleas help me!

Vu Chau (IMA SDK Team)

unread,
Jan 27, 2016, 12:40:38 PM1/27/16
to Interactive Media Ads SDK
Hi there,
  • A fragment of content slips in before the preroll starts
    • This happens because the player relies on the prerollTimeout value in order to know how long to wait for a preroll before resuming to content.  According to the spec, this value should be as small as possible so the user doesn't have to wait unnecessarily long if no preroll is scheduled.  Make this value greater if the implementation needs more time to decide whether there is a preroll or not.  It seems the latter scenario is the case here.  Upon page load, you can see the player going ahead and load content already before it realizes there is a preroll scheduled to be played, at which point it plays the ad but at a cost of showing some content.  I changed the value from the default 100 to something like 1000 (in videojs.ima.js), and was able to load the preroll immediately.  The implementation simply needs more than 100 ms to check and load the preroll.
  • Content not resuming at the end of the ad
    • This is a creative issue.  If you test the creative in our sample GitHub project, you will also see that it doesn't trigger content resume.  I put together a sample project here that should address both issues.
Vu Chau
IMA SDK Team

sorry chou

unread,
Jan 27, 2016, 7:17:22 PM1/27/16
to Interactive Media Ads SDK
Dear Vu Chau:

thanks to solve my question, but AFV creatives seems can't resume main video, so I listen onAdStarted_ and onAdComplete_, but now I have 3 problems need your help

1. how to detect ads skip button 
2. why my player button can't click(mute, progress bar)
3. how to close ads correctly, now I call the resetIMA_() but ads control bar still cover on main video

thank you!

Vu Chau (IMA SDK Team)於 2016年1月28日星期四 UTC+8上午1時40分38秒寫道:

sorry chou

unread,
Jan 27, 2016, 7:21:52 PM1/27/16
to Interactive Media Ads SDK
hi:

the test page url is http://tpe.sales-frontier.com/test/live/ima.php

thanks

sorry chou於 2016年1月28日星期四 UTC+8上午8時17分22秒寫道:

Vu Chau (IMA SDK Team)

unread,
Jan 28, 2016, 11:26:58 AM1/28/16
to Interactive Media Ads SDK
Hi there,

When I tested with our sample AFV tag, the content does resume successfully.  I noticed the ad tag you are using is serving a Flash VPAID from DFP and not AdSense.

1) I'm not sure what exactly you mean by this.  When AFV serves a skippable ad, the SDK will detect skippability based on the skipoffset attribute in the ad's VAST response.  As a result, the SDK will display the skip button and handle the logic accordingly when the button is clicked.  You shouldn't be creating your own custom skip ad button in any scenario.  If you would like your ads to serve as skippable, you can find assistance on the AdSense forum.

2 & 3) It looks like the AdDisplayContainer is still on.  This issue might tie with your other issue of not being able to resume to content.  Instead of listening to onAdComplete_, you might want to try onContentResumeRequested_, where the SDK resumes the content video and hides the ad container. Additionally, it seems to be a creative issue.  Your Flash VPAID creative somehow doesn't clean up the control interface on top of the video player.  

Vu Chau
IMA SDK Team

sorry chou

unread,
Jan 28, 2016, 12:11:53 PM1/28/16
to Interactive Media Ads SDK
Dear Vu Chau:

I use Adsense AFV generate ima tag and add into DFP creative, all creatives are from Adsense, so I very confusing why can't resume like yours and google provide ima samples.

sorry for my bad english, according my question

1) because the ads can't resume main video, so I need to listen event when skip button is click, but I don't know which event will be trigger.

2 & 3) all creatives are from Adsense, I don't know why?

Thank you

Vu Chau (IMA SDK Team)於 2016年1月29日星期五 UTC+8上午12時26分58秒寫道:

Vu Chau (IMA SDK Team)

unread,
Jan 28, 2016, 3:03:35 PM1/28/16
to Interactive Media Ads SDK
Hi there,

It turns out your ad tag is using the VPAID adapter (http://ima3vpaid.appspot.com), while it shouldn't. If you use this tag (http://googleads.g.doubleclick.net/pagead/ads?ad_type=video&client=ca-video-pub-3923027610554738&description_url=https%3A%2F%2Flivehouse.in%2F&videoad_start_delay=0&hl=zh_TW), which is the one your VPAID adapter ultimate redirects to, it should work.  You can check out my modified sample to see the change.

Vu Chau
IMA SDK Team

sorry chou

unread,
Jan 29, 2016, 6:51:02 AM1/29/16
to Interactive Media Ads SDK
Dear Vu Chau, 

thanks for your demo but we use DFP to manage our ads, so how to add AFV to DFP creative correctly? when I use direct sdk, the DFP say can't find video.

Thank you for all your assistance.



Vu Chau (IMA SDK Team)於 2016年1月29日星期五 UTC+8上午4時03分35秒寫道:

Vu Chau (IMA SDK Team)

unread,
Jan 29, 2016, 11:19:03 AM1/29/16
to Interactive Media Ads SDK
Hello,

I would recommend following the instructions in this Help Center article, which explains how to set up an AFV line item in DFP.  Please also note that this feature isn't available for all DFP networks, so if you continue to have problems, I'd recommend reaching out to the DFP support team.

Have a nice weekend!

Vu Chau
IMA SDK Team

joziel Bezerra de Souza

unread,
Jan 30, 2016, 12:41:17 AM1/30/16
to Interactive Media Ads SDK
o  l  a   pessoal ;   como   o  google   broqueia     um    saite.   que   está   se   apossando  de  muitos  Domínios   registrados.  é  pago  desde   2008 .  quando   sou   afiliado   fundador   da  Domai internacional  na  época  -eu   alguns  anos  tive  patrocinador.  depois  resolvei   me   escrever.   em   um   programa   grátis   DO GOOGLE  ADESENSE.  ATÉ   OS   DIAS  DE  HOJE.  ONDE   SOU   EDITOR   COM  PÚBLICIDADE  EM   MUITAS  EMPRESAS  SEM   MAIS 

sorry chou

unread,
Jan 30, 2016, 2:03:12 AM1/30/16
to Interactive Media Ads SDK
Dear Vu Chau:

thanks for your assistance!

Vu Chau (IMA SDK Team)於 2016年1月30日星期六 UTC+8上午12時19分03秒寫道:

Deepak Malhotra

unread,
Dec 14, 2016, 1:16:44 AM12/14/16
to Interactive Media Ads SDK
Hi Vu Chau,

I am running http://chauduyphanvu.github.io/ on my android mobile and it's not showing ads can you please tell me why.

Vu Chau (IMA SDK Team)

unread,
Dec 14, 2016, 9:52:04 AM12/14/16
to Interactive Media Ads SDK
Hi Deepak,

That example is no longer maintained. Please refer to this VideoJS IMA implementation example for the up-to-date version.

Thanks!

Vu Chau
IMA SDK Team

Reply all
Reply to author
Forward
0 new messages