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 |
static String |
Bundle key used for the media id in |
static String |
Bundle key used for the account name in |
static String |
Bundle key used for the account type in |
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"
See Also
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"