AdsLoader.Provider


public interface AdsLoader.Provider

Known direct subclasses
DefaultMediaSourceFactory.AdsLoaderProvider

This interface is deprecated.

Use AdsLoader.Provider instead.


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

Summary

Public methods

abstract @Nullable AdsLoader

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

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.