| Interface | Description |
|---|---|
| AdsLoader |
Interface for loaders of ads, which can be used with
AdsMediaSource. |
| AdsLoader.EventListener |
Listener for ad loader events.
|
| AdsMediaSource.EventListener | Deprecated
To listen for ad load error events, add a listener via
BaseMediaSource.addEventListener(Handler, MediaSourceEventListener) and check for AdsMediaSource.AdLoadExceptions in MediaSourceEventListener#onLoadError(int, MediaPeriodId,
LoadEventInfo, MediaLoadData, IOException, boolean). |
| 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.
|