play adBreak when we want with setAutoPlayAdBreaks(false)

257 views
Skip to first unread message

fado...@gmail.com

unread,
Nov 30, 2018, 5:57:34 AM11/30/18
to Interactive Media Ads SDK
Hello,

here is what is happening in the following situation :
- video of 10 minutes
- VMAP response with 3 adBreak scheduled at 2 min, 4 min, 6 min
- setAutoPlayAdBreaks(false)

i seek directly to 5 min. the adBreak scheduled at 4 min trigger AD_BREAK_READY

my problem is that i dont want to play this adBreak. In my use case if user seek directly after an adBreak i dont play the adBreak. But if later he seek back to before the adBreak and play the content, then i want to play it.

Currently it does not seem possible to achieve that ?

I tried to use updateAdsRenderingSettings to update the playAdsAfterTime to video duration to force adBreak not to trigger anything. But it does not seems to work. it seems updateAdsRenderingSettings only update bitrate :(
also this seems a bit of a hacky solution to my use case

thanks for any input

ima-sdk-adv...@google.com

unread,
Nov 30, 2018, 3:18:06 PM11/30/18
to ima...@googlegroups.com
Hi there,

Thank you for reaching out to support. The IMA SDK documentation actually provides a way to avoid trouble with seeking through video content when using ad rules or VMAPs. It suggests to use a custom playhead tracker and an example is shown at The trouble with seeking section of the documentation.

Regards,
Deepika Uragayala
IMA SDK Team

--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, 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.

Fado Mire

unread,
Nov 30, 2018, 3:38:42 PM11/30/18
to ima...@googlegroups.com
Thanks !

that’s what i ended doing

-- 
Fado Mire
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+u...@googlegroups.com.

fado...@gmail.com

unread,
Dec 4, 2018, 5:22:55 AM12/4/18
to Interactive Media Ads SDK
Hello, related to the issue below here is what i m still not able to figure out (i read the doc about seeking problem) :
- video of 10 minutes
- VMAP response with 3 adBreak scheduled at 2 min, 4 min, 6 min
- enablePreloading = true

when my user seek to 5 mins i want nothing to happen. i just want to play the 6 mins ad break when user get to that time position. -4 sec for preloading.

is it even possible ?

currently the 4 min ad break play. i dont want that.

One way would be to use updateAdsRenderingSettings to update the playAdsAfterTime but this does not seems to work.

Thanks

ima-sdk-adv...@google.com

unread,
Dec 4, 2018, 3:21:05 PM12/4/18
to ima...@googlegroups.com
Hi,

You can combine The trouble with seeking implementation and Disabling automatic playback of ad breaks (Manual Ad Breaks) to prevent the SDK from playing the mid-rolls automatically when the users seek pass them. It will allow you to play ad breaks when you feel ready since the SDK won't use the ad timeOffset to do so.

Regards,
Deepika Uragayala
IMA SDK Team
--

Fado Mire

unread,
Dec 4, 2018, 5:26:13 PM12/4/18
to ima...@googlegroups.com
The problem is i’d like to use preloading

and preloading is only available with auto ad break :(



-- 
Fado Mire
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages