MediaItem.LocalConfiguration


class MediaItem.LocalConfiguration


Properties for local playback.

Summary

Public functions

Boolean
equals(obj: Any?)
java-static MediaItem.LocalConfiguration!

Restores a LocalConfiguration from a Bundle.

Int
Bundle!

Returns a Bundle representing the information stored in this object.

Public properties

MediaItem.AdsConfiguration?

Optional ads configuration.

String?

Optional custom cache key (only used for progressive streams).

MediaItem.DrmConfiguration?

Optional DrmConfiguration for the media.

Long

Duration for image assets in milliseconds.

String?

The optional MIME type of the item, or null if unspecified.

(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 subtitleConfigurations instead.

Any?

Optional tag for custom attributes.

Uri!

The Uri.

Public functions

equals

fun equals(obj: Any?): Boolean

fromBundle

@UnstableApi
java-static fun fromBundle(bundle: Bundle!): MediaItem.LocalConfiguration!

Restores a LocalConfiguration from a Bundle.

hashCode

fun hashCode(): Int

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

adsConfiguration

val adsConfigurationMediaItem.AdsConfiguration?

Optional ads configuration.

customCacheKey

@UnstableApi
val customCacheKeyString?

Optional custom cache key (only used for progressive streams).

drmConfiguration

val drmConfigurationMediaItem.DrmConfiguration?

Optional DrmConfiguration for the media.

imageDurationMs

@UnstableApi
val imageDurationMsLong

Duration for image assets in milliseconds.

mimeType

val mimeTypeString?

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 subtitleConfigurationsImmutableList<MediaItem.SubtitleConfiguration!>!

Optional subtitles to be sideloaded.

subtitles

@UnstableApi
val subtitles: (Mutable)List<MediaItem.Subtitle!>!

tag

val tagAny?

Optional tag for custom attributes. The tag for the media source which will be published in the androidx.media3.common.Timeline of the source as androidx.media3.common.Timeline.Window#tag.

uri

val uriUri!

The Uri.