Interface DefaultMediaSourceFactory.AdsLoaderProvider
-
- Enclosing class:
- DefaultMediaSourceFactory
public static interface DefaultMediaSourceFactory.AdsLoaderProviderProvidesAdsLoaderinstances for media items that havead tag URIs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AdsLoadergetAdsLoader(MediaItem.AdsConfiguration adsConfiguration)Returns anAdsLoaderfor the givenads configuration, ornullif no ads loader is available for the given ads configuration.
-
-
-
Method Detail
-
getAdsLoader
@Nullable AdsLoader getAdsLoader(MediaItem.AdsConfiguration adsConfiguration)
Returns anAdsLoaderfor the givenads configuration, ornullif no ads loader is available for the given ads configuration.This method is called each time a
MediaSourceis created from aMediaItemthat defines anads configuration.
-
-