MediaItemMetadata
class MediaItemMetadata
kotlin.Any | |
↳ | androidx.mediarouter.media.MediaItemMetadata |
Constants for specifying metadata about a media item as a Bundle
.
This class is part of the remote playback protocol described by the MediaControlIntent
class.
Media item metadata is described as a bundle of key/value pairs as defined in this class. The documentation specifies the type of value associated with each key.
An application may specify additional custom metadata keys but there is no guarantee that they will be recognized by the destination.
Summary
Constants | |
---|---|
static String |
String key: Album artist name. |
static String |
String key: Album title. |
static String |
String key: Artist name. |
static String |
String key: Artwork Uri. |
static String |
String key: Author name. |
static String |
String key: Composer name. |
static String |
Integer key: Disc number within a collection. |
static String |
Long key: Item playback duration in milliseconds. |
static String |
String key: Track title. |
static String |
Integer key: Track number (such as a track on a CD). |
static String |
Integer key: Year of publication. |
Constants
KEY_ALBUM_ARTIST
static val KEY_ALBUM_ARTIST: String
String key: Album artist name.
The value is a string suitable for display.
Value: "android.media.metadata.ALBUM_ARTIST"
KEY_ALBUM_TITLE
static val KEY_ALBUM_TITLE: String
String key: Album title.
The value is a string suitable for display.
Value: "android.media.metadata.ALBUM_TITLE"
KEY_ARTIST
static val KEY_ARTIST: String
String key: Artist name.
The value is a string suitable for display.
Value: "android.media.metadata.ARTIST"
KEY_ARTWORK_URI
static val KEY_ARTWORK_URI: String
String key: Artwork Uri.
The value is a string URI for an image file associated with the media item, such as album or cover art.
Value: "android.media.metadata.ARTWORK_URI"
KEY_AUTHOR
static val KEY_AUTHOR: String
String key: Author name.
The value is a string suitable for display.
Value: "android.media.metadata.AUTHOR"
KEY_COMPOSER
static val KEY_COMPOSER: String
String key: Composer name.
The value is a string suitable for display.
Value: "android.media.metadata.COMPOSER"
KEY_DISC_NUMBER
static val KEY_DISC_NUMBER: String
Integer key: Disc number within a collection.
The value is a one-based integer disc number.
Value: "android.media.metadata.DISC_NUMBER"
KEY_DURATION
static val KEY_DURATION: String
Long key: Item playback duration in milliseconds.
The value is a long
number of milliseconds.
The duration metadata is only a hint to enable a remote media player to guess the duration of the content before it actually opens the media stream. The remote media player should still determine the actual content duration from the media stream itself independent of the value that may be specified by this key.
Value: "android.media.metadata.DURATION"
KEY_TITLE
static val KEY_TITLE: String
String key: Track title.
The value is a string suitable for display.
Value: "android.media.metadata.TITLE"
KEY_TRACK_NUMBER
static val KEY_TRACK_NUMBER: String
Integer key: Track number (such as a track on a CD).
The value is a one-based integer track number.
Value: "android.media.metadata.TRACK_NUMBER"
KEY_YEAR
static val KEY_YEAR: String
Integer key: Year of publication.
The value is an integer year number.
Value: "android.media.metadata.YEAR"