public final class MediaItemMetadata extends Object
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.
Modifier and Type | Field and Description |
---|---|
static String |
KEY_ALBUM_ARTIST
String key: Album artist name.
|
static String |
KEY_ALBUM_TITLE
String key: Album title.
|
static String |
KEY_ARTIST
String key: Artist name.
|
static String |
KEY_ARTWORK_URI
String key: Artwork Uri.
|
static String |
KEY_AUTHOR
String key: Author name.
|
static String |
KEY_COMPOSER
String key: Composer name.
|
static String |
KEY_DISC_NUMBER
Integer key: Disc number within a collection.
|
static String |
KEY_DURATION
Long key: Item playback duration in milliseconds.
|
static String |
KEY_TITLE
String key: Track title.
|
static String |
KEY_TRACK_NUMBER
Integer key: Track number (such as a track on a CD).
|
static String |
KEY_YEAR
Integer key: Year of publication.
|
public static final String KEY_ALBUM_ARTIST
The value is a string suitable for display.
public static final String KEY_ALBUM_TITLE
The value is a string suitable for display.
public static final 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.
public static final String KEY_ARTIST
The value is a string suitable for display.
public static final String KEY_AUTHOR
The value is a string suitable for display.
public static final String KEY_COMPOSER
The value is a string suitable for display.
public static final String KEY_TITLE
The value is a string suitable for display.
public static final String KEY_YEAR
The value is an integer year number.
public static final String KEY_TRACK_NUMBER
The value is a one-based integer track number.
public static final String KEY_DISC_NUMBER
The value is a one-based integer disc number.
public static final String KEY_DURATION
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.