AdsLoader.Provider


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 functions

AdsLoader?

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

Public functions

getAdsLoader

fun getAdsLoader(adsConfiguration: MediaItem.AdsConfiguration!): AdsLoader?

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.