You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are not using PlayerView then your app UI needs to provide an ViewGroup rather than using the player view. The ViewGroup needs to be an overlay of the surface that plays the ad, so that the ad SDK can insert UI elements that appear on top of the ad while the ad is playing (like the skip button or the more info link and the like). Add such a ViewGroup to your UI and pass it as return value of the AdViewProvider.getAdViewGroup().
I am trying to add local ads implementation with leanback exoplayer.
I am following https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side
But I am unsure on what to set adViewProvider since I am using PlaybackTransportControlGlue and not player view.
https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/source/DefaultMediaSourceFactory.html#setLocalAdInsertionComponents(com.google.android.exoplayer2.source.ads.AdsLoader.Provider,com.google.android.exoplayer2.ui.AdViewProvider)
Any tips will be really appreciated.
The text was updated successfully, but these errors were encountered: