Yandex Ads Loader
Deprecated
This AdsLoader version is deprecated, use YandexAdsLoader from com.yandex.mobile.ads.instream.media3 package
Replace with
import com.yandex.mobile.ads.instream.media3.YandexMedia3AdsLoader
Content copied to clipboard
YandexMedia3AdsLoaderContent copied to clipboard
This class is implementation of ExoPlayer's AdsLoader interface. It can be used for simplified integration of Yandex Instream Ads to Exoplayer. Note that all methods of this class must be called on main thread.
Functions
Link copied to clipboard
Link copied to clipboard
open fun handlePrepareComplete(adsMediaSource: AdsMediaSource, adGroupIndex: Int, adIndexInAdGroup: Int)
Link copied to clipboard
open fun handlePrepareError(adsMediaSource: AdsMediaSource, adGroupIndex: Int, adIndexInAdGroup: Int, exception: IOException)
Link copied to clipboard
Requests ads, if they have not already been requested. Ads will be requested automatically when the player is prepared if this method has not been called, so it is only necessary to call this method if you want to request ads before preparing the player.
Link copied to clipboard
Link copied to clipboard
Sets listener for single video ad creative playback events.