Android Brightcove with IMA Plugin — Auto-play pre-roll before next video

492 views
Skip to first unread message

Mary Jane Zorick

unread,
Nov 17, 2014, 7:01:40 PM11/17/14
to ima...@googlegroups.com

1 - Using Android with Brightcove Player for Android with Google IMA plugin with Ad Rules

2 -  I can share ad tag privately if needed but we haven’t had a problem with the VAST response. 

3 - Pre-roll ad plays fine when video is loaded into Brightcove player and we can continue to load and play videos. When we have a video over 5 minutes in length, we would like to serve the pre-roll ad again before next video —  in other words, showing pre-roll ads between certain videos in Continuous play.   

When the video has completed, we load the next video into the player and then call reloadAdsRequest on the GoogleIMAComponent. The ad gets requested, video set, and cue point (BEFORE) is set, but the ad will not auto-play until the Play button is pressed. Any suggestions?  

4 – Add three videos to Brightcove video view and try to intercept the third video on complete and auto-play an ad using ad rules. 

Thanks so much guys!

Paul Michael Reilly

unread,
Nov 18, 2014, 10:50:01 AM11/18/14
to ima...@googlegroups.com
Mary, you might want to try posting this to the Android/iOS SDK forum while our IMA Android guru is under the weather.  Good luck.

Paul Reilly

unread,
Nov 18, 2014, 1:49:47 PM11/18/14
to ima...@googlegroups.com
First off, reloadAdsRequest() doesn't actually do anything when using Ad Rules.  It's meant to reload the AdsRequest when using CuePoints instead of Ad Rules.

For #3, it sounds like you want the preroll for video N to play again as a postroll before video N+1 is played.  I don't believe their is any way to do this using the Android IMA API when using Ad Rules.  Could you possibly use the Doubleclick For Publishers dashboard to reconfigure your Ad Rules to duplicate the preroll in the postroll slot?

For #4, it's possible to listen for COMPLETED events and act on the third one, but it doesn't make sense to use Ad Rules to play an ad at that point.  Again, this sounds like something you would want to configure on the server side by adding a postroll to the Ad Rules for the third video.

In general, the idea with Ad Rules is that you control when ads play via Google's DFP dashboard.  The old way of doing things was to use client side CuePoints created using VideoCloud or programmatically on the client and requesting a new VAST response each time a CuePoint was reached.

-Paul


On Monday, November 17, 2014 7:01:40 PM UTC-5, Mary Jane Zorick wrote:

Mary Jane Zorick

unread,
Nov 18, 2014, 3:04:33 PM11/18/14
to ima...@googlegroups.com
Paul(s) -- thank for your quick response! I was actually able to do what I needed using the answer posted here - https://groups.google.com/forum/#!topic/brightcove-native-player-sdks/2vmmMzOY640.  I added the eventListener to the ADS_MANAGER_LOADED event and called start() there.  Now we can have the ad autoplay at the beginning of the next video. 
Reply all
Reply to author
Forward
0 new messages