Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

MediaConstants

class MediaConstants
kotlin.Any
   ↳ androidx.media.utils.MediaConstants

Media constants for sharing constants between media provider and consumer apps

Summary

Constants
static String

Bundle key used for media content id in metadata, should contain the same ID provided to Media Actions Catalog in reference to this title (e.g., episode, movie).

static String

Bundle key used for the media id in playback state extras.

static String

Bundle key used for the account name in session extras.

static String

Bundle key used for the account type in session extras.

Constants

METADATA_KEY_CONTENT_ID

static val METADATA_KEY_CONTENT_ID: String

Bundle key used for media content id in metadata, should contain the same ID provided to Media Actions Catalog in reference to this title (e.g., episode, movie). Google uses this information to allow users to resume watching this title on your app across the supported surfaces (e.g., Android TV's Play Next row)

TYPE: String

Value: "androidx.media.MediaMetadatCompat.METADATA_KEY_CONTENT_ID"

PLAYBACK_STATE_EXTRAS_KEY_MEDIA_ID

static val PLAYBACK_STATE_EXTRAS_KEY_MEDIA_ID: String

Bundle key used for the media id in playback state extras. It's for associating the playback state with the media being played so the value is expected to be same with media id of the current metadata.

TYPE: String

Value: "androidx.media.PlaybackStateCompat.Extras.KEY_MEDIA_ID"

SESSION_EXTRAS_KEY_ACCOUNT_NAME

static val SESSION_EXTRAS_KEY_ACCOUNT_NAME: String

Bundle key used for the account name in session extras.

TYPE: String

Value: "androidx.media.MediaSessionCompat.Extras.KEY_ACCOUNT_NAME"

SESSION_EXTRAS_KEY_ACCOUNT_TYPE

static val SESSION_EXTRAS_KEY_ACCOUNT_TYPE: String

Bundle key used for the account type in session extras. The value would vary across media applications.

TYPE: String

Value: "androidx.media.MediaSessionCompat.Extras.KEY_ACCOUNT_TYPE"