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
I see that in ImaAdsLoader there is a pre loading implementation, but it gets called only on onAdsManagerLoaded that gets called only after requesting ad (i think).
I want to pre request ads and when the user scroll to a video item show the preroll only if it's already loaded (and not wait for ad to download).
thanks!
The text was updated successfully, but these errors were encountered:
In case you want to play just the content if the ad tag hasn't loaded by the time you need to prepare the player: you could call ImaAdsLoader.getAdsLoader, attach your own AdsLoadedListener and then handle onAdsManagerLoaded. At the time of preparing the player, if that method has been called you know to proceed with playback with ads. Otherwise you can prepare the player with a content media source and release the ads loader.
I see that in
ImaAdsLoader
there is a pre loading implementation, but it gets called only ononAdsManagerLoaded
that gets called only after requesting ad (i think).I want to pre request ads and when the user scroll to a video item show the preroll only if it's already loaded (and not wait for ad to download).
thanks!
The text was updated successfully, but these errors were encountered: