MediaItem.LocalConfiguration
class MediaItem.LocalConfiguration
Properties for local playback.
Summary
Public functions |
|
|---|---|
Boolean |
|
java-static MediaItem.LocalConfiguration! |
@UnstableApiRestores a |
Int |
hashCode() |
Bundle! |
Returns a |
Public properties |
|
|---|---|
MediaItem.AdsConfiguration? |
Optional ads configuration. |
String? |
Optional custom cache key (only used for progressive streams). |
MediaItem.DrmConfiguration? |
Optional |
Long |
Duration for image assets in milliseconds. |
String? |
The optional MIME type of the item, or |
(Mutable)List<StreamKey!>! |
Optional stream keys by which the manifest is filtered. |
ImmutableList<MediaItem.SubtitleConfiguration!>! |
Optional subtitles to be sideloaded. |
(Mutable)List<MediaItem.Subtitle!>! |
This property is deprecated. Use |
Any? |
Optional tag for custom attributes. |
Uri! |
The |
Public functions
fromBundle
@UnstableApi
java-static fun fromBundle(bundle: Bundle!): MediaItem.LocalConfiguration!
Restores a LocalConfiguration from a Bundle.
toBundle
@UnstableApi
fun toBundle(): Bundle!
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 fromBundle will be null.
Public properties
customCacheKey
@UnstableApi
val customCacheKey: String?
Optional custom cache key (only used for progressive streams).
drmConfiguration
val drmConfiguration: MediaItem.DrmConfiguration?
Optional DrmConfiguration for the media.
mimeType
val mimeType: String?
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.
streamKeys
@UnstableApi
val streamKeys: (Mutable)List<StreamKey!>!
Optional stream keys by which the manifest is filtered.
subtitleConfigurations
val subtitleConfigurations: ImmutableList<MediaItem.SubtitleConfiguration!>!
Optional subtitles to be sideloaded.