MediaItem.RequestMetadata


class MediaItem.RequestMetadata


Metadata that helps the player to understand a playback request represented by a .

This metadata is most useful for cases where playback requests are forwarded to other player instances (e.g. from a androidx.media3.session.MediaController) and the player creating the request doesn't know the required LocalConfiguration for playback.

Summary

Nested types

Builder for RequestMetadata instances.

Constants

const MediaItem.RequestMetadata!

Empty request metadata.

Public functions

MediaItem.RequestMetadata.Builder!

Returns a Builder initialized with the values of this instance.

Boolean
equals(o: Any?)
java-static MediaItem.RequestMetadata!

Restores a RequestMetadata from a Bundle.

Int
Bundle!

Public properties

Bundle?

Optional extras Bundle.

Uri?

The URI of the requested media, or null if not known or applicable.

String?

The search query for the requested media, or null if not applicable.

Constants

EMPTY

const val EMPTYMediaItem.RequestMetadata!

Empty request metadata.

Public functions

buildUpon

fun buildUpon(): MediaItem.RequestMetadata.Builder!

Returns a Builder initialized with the values of this instance.

equals

fun equals(o: Any?): Boolean

fromBundle

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

Restores a RequestMetadata from a Bundle.

hashCode

fun hashCode(): Int

toBundle

@UnstableApi
fun toBundle(): Bundle!

Public properties

extras

val extrasBundle?

Optional extras Bundle.

Given the complexities of checking the equality of two Bundle instances, the contents of these extras are not considered in the equals or hashCode implementation.

mediaUri

val mediaUriUri?

The URI of the requested media, or null if not known or applicable.

searchQuery

val searchQueryString?

The search query for the requested media, or null if not applicable.