public interface

AdsLoader.Provider

 androidx.media3.exoplayer.source.ads.AdsLoader.Provider

Subclasses:

DefaultMediaSourceFactory.AdsLoaderProvider

Overview

Provides AdsLoader instances for media items that have .

Summary

Methods
public AdsLoadergetAdsLoader(MediaItem.AdsConfiguration adsConfiguration)

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

Methods

public AdsLoader getAdsLoader(MediaItem.AdsConfiguration adsConfiguration)

Returns an AdsLoader for the given , 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 .