| Interface | Description |
|---|---|
| AdsLoader |
Interface for loaders of ads, which can be used with
AdsMediaSource. |
| AdsLoader.AdViewProvider |
Provides views for the ad UI.
|
| AdsLoader.EventListener |
Listener for ads loader events.
|
| AdsMediaSource.MediaSourceFactory |
Factory for creating
MediaSources to play ad media. |
| Class | Description |
|---|---|
| AdPlaybackState |
Represents ad group times relative to the start of the media and information on the state and
URIs of ads within each ad group.
|
| AdPlaybackState.AdGroup |
Represents a group of ads, with information about their states.
|
| AdsMediaSource |
A
MediaSource that inserts ads linearly with a provided content media source. |
| SinglePeriodAdTimeline |
A
Timeline for sources that have ads. |
| Exception | Description |
|---|---|
| AdsMediaSource.AdLoadException |
Wrapper for exceptions that occur while loading ads, which are notified via
MediaSourceEventListener#onLoadError(int, MediaPeriodId, LoadEventInfo, MediaLoadData,
IOException, boolean). |
| Annotation Type | Description |
|---|---|
| AdPlaybackState.AdState |
Represents the state of an ad in an ad group.
|
| AdsMediaSource.AdLoadException.Type |
Types of ad load exceptions.
|