[Android IMA SDK] How can i know is mid-roll time to trigger IMA run video ad when i using VMAP .

387 views
Skip to first unread message

林則儒

unread,
May 16, 2017, 4:12:22 AM5/16/17
to Interactive Media Ads SDK
I'm Louis , i have playback playing drama video stream , and also have fragment include another playback playing ima video ad , 
My problem is how can i know is mid-roll time to trigger ima video ad play video ad when i using vmap rule . 
Is there has any method talk ima what drama video current position then ima will know is mid-roll time if vmap has mid-roll .


Chris Feldman (IMA SDK Team)

unread,
May 16, 2017, 11:07:11 AM5/16/17
to Interactive Media Ads SDK
Hi Louis,

It sounds like you'd be interested in the getAdCuePoints() method of the AdsManager. This method will return a list of content time offsets in seconds at which ad breaks are scheduled, or an empty list if no ad breaks are scheduled.

Please let me know if you have any further questions.

Regards,
Chris Feldman
IMA SDK Team

林則儒

unread,
May 16, 2017, 10:14:25 PM5/16/17
to ima...@googlegroups.com
HI Chris :

Thanks for reply , This is the perfect method that i didn't found it before , it will be help a lot , but there is another problem , i thought if i use vmap rule , than ima sdk will know what time should show mid-roll or pre-roll , i don't know what is exactly flow to support vmap pre-roll & mid-roll in ima-sk , cause i found google ima sample code in github , but there isn't have vmap flow solution . 

thanks 

Best Regards
Louis

------------------------------------------------------------------------------------

電話:0928048213

地址:243台灣新北市泰山區工專路84號

E-mailstli...@gmail.com

----------------------------------------------------------------------------------------


--
You received this message because you are subscribed to a topic in the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ima-sdk/glQ10aJ1WAg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ima-sdk+unsubscribe@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

Chris Feldman (IMA SDK Team)

unread,
May 17, 2017, 11:30:11 AM5/17/17
to Interactive Media Ads SDK
Hi Louis,

All of the samples hosted on our GitHub page support VMAP ad tags.  You can swap the Basic Example's tag with a VMAP tag, or the Advanced Example has a VMAP sample pre-built in. What type of issues are you having with the sample code? If you can be more specific, I'll be happy to help.

Regards,
Chris Feldman
IMA SDK Team

林則儒

unread,
May 18, 2017, 3:24:33 AM5/18/17
to ima...@googlegroups.com
HI Chris : 

First thanks u help me a lot , sorry that i didn't test enough that sampe AdVanced , but now i'm figure out what is going on about vmap in ima sdk flow ,

thank you   

Best Regards
Louis

------------------------------------------------------------------------------------

電話:0928048213

地址:243台灣新北市泰山區工專路84號

E-mailstli...@gmail.com

----------------------------------------------------------------------------------------


Reply all
Reply to author
Forward
0 new messages