docs/doc/reference/com/google/android/exoplayer2/MediaItem.LocalConfiguration.html
Package com.google.android.exoplayer2
All Implemented Interfaces:BundleableEnclosing class:MediaItem
public static final classMediaItem.LocalConfigurationextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Bundleable](Bundleable.html "interface in com.google.android.exoplayer2")
Properties for local playback.
-
Bundleable.Creator<T extends Bundleable>
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| MediaItem.AdsConfiguration | adsConfiguration |
Optional ads configuration.
|
| static Bundleable.Creator<MediaItem.LocalConfiguration> | CREATOR |
Object that can restore MediaItem.LocalConfiguration from a Bundle.
|
| String | customCacheKey |
Optional custom cache key (only used for progressive streams).
|
| MediaItem.DrmConfiguration | drmConfiguration |
Optional MediaItem.DrmConfiguration for the media.
|
| String | mimeType |
The optional MIME type of the item, or null if unspecified.
|
| List<StreamKey> | streamKeys |
Optional stream keys by which the manifest is filtered.
|
| ImmutableList<MediaItem.SubtitleConfiguration> | subtitleConfigurations |
Optional subtitles to be sideloaded.
|
| List<MediaItem.Subtitle> | subtitles |
Deprecated.
Use subtitleConfigurations instead.
|
| Object | tag |
Optional tag for custom attributes.
|
| Uri | uri |
The Uri.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | equals(Object obj) | |
| int | hashCode() | |
| Bundle | toBundle() |
Returns a Bundle representing the information stored in this object.
|
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
public final[Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")uri
The Uri.
-
@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")mimeType
The optional MIME type of the item, or null if unspecified.
The MIME type can be used to disambiguate media items that have a URI which does not allow to infer the actual media type.
-
@Nullable
public final[MediaItem.DrmConfiguration](MediaItem.DrmConfiguration.html "class in com.google.android.exoplayer2")drmConfiguration
Optional MediaItem.DrmConfiguration for the media.
-
@Nullable
public final[MediaItem.AdsConfiguration](MediaItem.AdsConfiguration.html "class in com.google.android.exoplayer2")adsConfiguration
Optional ads configuration.
-
public final[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[StreamKey](offline/StreamKey.html "class in com.google.android.exoplayer2.offline")> streamKeys
Optional stream keys by which the manifest is filtered.
-
@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")customCacheKey
Optional custom cache key (only used for progressive streams).
-
public final[ImmutableList](https://guava.dev/releases/31.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true "class or interface in com.google.common.collect")<[MediaItem.SubtitleConfiguration](MediaItem.SubtitleConfiguration.html "class in com.google.android.exoplayer2")> subtitleConfigurations
Optional subtitles to be sideloaded.
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[MediaItem.Subtitle](MediaItem.Subtitle.html "class in com.google.android.exoplayer2")> subtitles
Deprecated.
Use subtitleConfigurations instead.
-
@Nullable
public final[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")tag
Optional tag for custom attributes. The tag for the media source which will be published in the com.google.android.exoplayer2.Timeline of the source as com.google.android.exoplayer2.Timeline.Window#tag.
-
public static final[Bundleable.Creator](Bundleable.Creator.html "interface in com.google.android.exoplayer2")<[MediaItem.LocalConfiguration](MediaItem.LocalConfiguration.html "class in com.google.android.exoplayer2")> CREATOR
Object that can restore MediaItem.LocalConfiguration from a Bundle.
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)
Overrides:equals in class Object
-
public int hashCode()
Overrides:hashCode in class Object
-
public[Bundle](https://developer.android.com/reference/android/os/Bundle.html "class or interface in android.os")toBundle()
Returns a Bundle representing the information stored in this object.
It omits the tag field. The tag of an instance restored from such a bundle by CREATOR will be null.
Specified by:toBundle in interface Bundleable