AdsLoader.Provider
Artifact: androidx.media3:media3-exoplayer
public interface AdsLoader.Provider
DefaultMediaSourceFactory.AdsLoaderProvider |
This interface is deprecated. Use |
Provides AdsLoader instances for media items that have ad tag URIs.
Summary
Public methods |
|
|---|---|
abstract @Nullable AdsLoader |
getAdsLoader(MediaItem.AdsConfiguration adsConfiguration)Returns an |
Public methods
getAdsLoader
abstract @Nullable 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.
This method is called each time a MediaSource is created from a MediaItem that defines an ads configuration.