Back to Exoplayer

MediaItem.LocalConfiguration (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/MediaItem.LocalConfiguration.html

latest7.2 KB
Original Source

Package com.google.android.exoplayer2

Class MediaItem.LocalConfiguration

  • java.lang.Object

    • com.google.android.exoplayer2.MediaItem.LocalConfiguration
  • 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.

Nested Class Summary

- 

Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable

Bundleable.Creator<T extends Bundleable>

Field Summary

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. |

Method Summary

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. |

- 

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

uri

public final[Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")uri

The Uri.

- 

mimeType

@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.

- 

drmConfiguration

@Nullable
public final[MediaItem.DrmConfiguration](MediaItem.DrmConfiguration.html "class in com.google.android.exoplayer2")drmConfiguration

Optional MediaItem.DrmConfiguration for the media.

- 

adsConfiguration

@Nullable
public final[MediaItem.AdsConfiguration](MediaItem.AdsConfiguration.html "class in com.google.android.exoplayer2")adsConfiguration

Optional ads configuration.

- 

streamKeys

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.

- 

customCacheKey

@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).

- 

subtitleConfigurations

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.

- 

subtitles

[@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.

- 

tag

@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.

- 

CREATOR

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.

Method Detail

- 

equals

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

- 

hashCode

public int hashCode()

Overrides:hashCode in class Object

- 

toBundle

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