Back to Exoplayer

AdsLoader.Provider (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/ads/AdsLoader.Provider.html

latest1.9 KB
Original Source

Package com.google.android.exoplayer2.source.ads

Interface AdsLoader.Provider

  • All Known Subinterfaces:DefaultMediaSourceFactory.AdsLoaderProviderEnclosing interface:AdsLoader

public static interfaceAdsLoader.Provider

Provides AdsLoader instances for media items that have ad tag URIs.

Method Summary

All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description | | --- | --- | --- | | AdsLoader | getAdsLoader​(MediaItem.AdsConfiguration adsConfiguration) | Returns an AdsLoader for the given ads configuration, or null if no ads loader is available for the given ads configuration. |

Method Detail

- 

getAdsLoader

@Nullable[AdsLoader](AdsLoader.html "interface in com.google.android.exoplayer2.source.ads")getAdsLoader​([MediaItem.AdsConfiguration](../../MediaItem.AdsConfiguration.html "class in com.google.android.exoplayer2")adsConfiguration)

Returns an AdsLoader for the given ads configuration, or null if no ads loader is available for the given ads configuration.

This method is called each time a MediaSource is created from a MediaItem that defines an ads configuration.