[ANDROID] Placing AdUIContainer underneath exoplayer controls

137 views
Skip to first unread message

Krzysztof Balana

unread,
Feb 20, 2020, 2:31:35 AM2/20/20
to Interactive Media Ads SDK
Hi! 

I have this problem. I would like to place adUiControls (learn more link, ad counter) layer beneath exoplayer controls, to let user manipulate stream during playback (rewind/forward/play/pause etc).

All my current ui elements on exoplayer are being added by com.google.android.exoplayer2.ui.PlayerView.getOverlayFrameLayout()

example below:

val container = exoplayer_view.overlayFrameLayout

container!!.apply {
addView(adUiContainer)
addView(controls as View)
addView(playerSettingsMenu as View)
}



More visual example:

Untitled-2.png


Unfortunately when "Learn More" is about to appear I got crash. Is this even possible? 


Thanks in advance!


IMA SDK

unread,
Feb 20, 2020, 4:08:40 AM2/20/20
to krzyszto...@gmail.com, ima...@googlegroups.com

Hi Krzysztof,

 

Thank you for reaching out to us. However, it seems like the issue that you're facing is more likely in the ExoPlayer implementation rather than the IMA SDK itself. With this, I would recommend posting your inquiry to the ExoPlayer github issue page to have further assistance from the ExoPlayer support team regarding your concern.

 

Regards,

Sherwin Diesta

IMA SDK Team



ref:_00D1U1174p._5001UV1gXH:ref

Kbaln

unread,
Feb 26, 2020, 2:16:22 AM2/26/20
to Interactive Media Ads SDK
Hi Sherwin,

Thank you for your response. I have one more question though. Is it even possible to have exoplayer controls during ad play? Everytime ad is being played, sdk's webview (which is inside aduicontainer) blocks all click events, therefore I'm unable to trigger exoplayer controls to appear. Is this behaviour intended? 

IMA SDK

unread,
Feb 26, 2020, 4:54:23 AM2/26/20
to krzyszto...@gmail.com, ima...@googlegroups.com

Hi Krzysztof,

 

Thanks for getting back to us. I believe this is an intended behavior. The Ad display container intercepts click events while an ad is playing, as the SDK handles the ad UI container and the video ad player.

 

I would really recommend that you reach out to the ExoPlayer github page as they are more capable of giving support on any ExoPlayer IMA extension related concerns.

Reply all
Reply to author
Forward
0 new messages