Package com.google.android.exoplayer2
Class MediaItem.AdsConfiguration
- java.lang.Object
-
- com.google.android.exoplayer2.MediaItem.AdsConfiguration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MediaItem.AdsConfiguration.Builder
Builder forMediaItem.AdsConfiguration
instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaItem.AdsConfiguration.Builder
buildUpon()
Returns aMediaItem.AdsConfiguration.Builder
initialized with the values of this instance.boolean
equals(Object obj)
int
hashCode()
-
-
-
Field Detail
-
adTagUri
public final Uri adTagUri
The ad tag URI to load.
-
adsId
@Nullable public final Object adsId
An opaque identifier for ad playback state associated with this item, ornull
if the combination of themedia ID
andad tag URI
should be used as the ads identifier.Media items in the playlist that have the same ads identifier and ads loader share the same ad playback state. To resume ad playback when recreating the playlist on returning from the background, pass the same ads identifiers to the player.
-
-
Method Detail
-
buildUpon
public MediaItem.AdsConfiguration.Builder buildUpon()
Returns aMediaItem.AdsConfiguration.Builder
initialized with the values of this instance.
-
-