Package com.google.android.exoplayer2
Class MediaItem.LocalConfiguration
- java.lang.Object
-
- com.google.android.exoplayer2.MediaItem.LocalConfiguration
-
- All Implemented Interfaces:
Bundleable
- Enclosing class:
- MediaItem
public static final class MediaItem.LocalConfiguration extends Object implements Bundleable
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.AdsConfigurationadsConfigurationOptional ads configuration.static Bundleable.Creator<MediaItem.LocalConfiguration>CREATORObject that can restoreMediaItem.LocalConfigurationfrom aBundle.StringcustomCacheKeyOptional custom cache key (only used for progressive streams).MediaItem.DrmConfigurationdrmConfigurationOptionalMediaItem.DrmConfigurationfor the media.StringmimeTypeThe optional MIME type of the item, ornullif unspecified.List<StreamKey>streamKeysOptional stream keys by which the manifest is filtered.ImmutableList<MediaItem.SubtitleConfiguration>subtitleConfigurationsOptional subtitles to be sideloaded.List<MediaItem.Subtitle>subtitlesDeprecated.UsesubtitleConfigurationsinstead.ObjecttagOptional tag for custom attributes.UriuriTheUri.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()BundletoBundle()Returns aBundlerepresenting the information stored in this object.
-
-
-
Field Detail
-
mimeType
@Nullable public final String mimeType
The optional MIME type of the item, ornullif 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 drmConfiguration
OptionalMediaItem.DrmConfigurationfor the media.
-
adsConfiguration
@Nullable public final MediaItem.AdsConfiguration adsConfiguration
Optional ads configuration.
-
streamKeys
public final List<StreamKey> streamKeys
Optional stream keys by which the manifest is filtered.
-
customCacheKey
@Nullable public final String customCacheKey
Optional custom cache key (only used for progressive streams).
-
subtitleConfigurations
public final ImmutableList<MediaItem.SubtitleConfiguration> subtitleConfigurations
Optional subtitles to be sideloaded.
-
subtitles
@Deprecated public final List<MediaItem.Subtitle> subtitles
Deprecated.UsesubtitleConfigurationsinstead.
-
tag
@Nullable public final Object tag
Optional tag for custom attributes. The tag for the media source which will be published in thecom.google.android.exoplayer2.Timelineof the source ascom.google.android.exoplayer2.Timeline.Window#tag.
-
CREATOR
public static final Bundleable.Creator<MediaItem.LocalConfiguration> CREATOR
Object that can restoreMediaItem.LocalConfigurationfrom aBundle.
-
-