MediaItemMetadata


class 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

const String!
KEY_ALBUM_ARTIST = "android.media.metadata.ALBUM_ARTIST"

String key: Album artist name.

const String!
KEY_ALBUM_TITLE = "android.media.metadata.ALBUM_TITLE"

String key: Album title.

const String!
KEY_ARTIST = "android.media.metadata.ARTIST"

String key: Artist name.

const String!
KEY_ARTWORK_URI = "android.media.metadata.ARTWORK_URI"

String key: Artwork Uri.

const String!
KEY_AUTHOR = "android.media.metadata.AUTHOR"

String key: Author name.

const String!
KEY_COMPOSER = "android.media.metadata.COMPOSER"

String key: Composer name.

const String!
KEY_DISC_NUMBER = "android.media.metadata.DISC_NUMBER"

Integer key: Disc number within a collection.

const String!
KEY_DURATION = "android.media.metadata.DURATION"

Long key: Item playback duration in milliseconds.

const String!
KEY_TITLE = "android.media.metadata.TITLE"

String key: Track title.

const String!
KEY_TRACK_NUMBER = "android.media.metadata.TRACK_NUMBER"

Integer key: Track number (such as a track on a CD).

const String!
KEY_YEAR = "android.media.metadata.YEAR"

Integer key: Year of publication.

Constants

KEY_ALBUM_ARTIST

Added in 1.1.0
const val KEY_ALBUM_ARTIST = "android.media.metadata.ALBUM_ARTIST": String!

String key: Album artist name.

The value is a string suitable for display.

KEY_ALBUM_TITLE

Added in 1.1.0
const val KEY_ALBUM_TITLE = "android.media.metadata.ALBUM_TITLE": String!

String key: Album title.

The value is a string suitable for display.

KEY_ARTIST

Added in 1.1.0
const val KEY_ARTIST = "android.media.metadata.ARTIST": String!

String key: Artist name.

The value is a string suitable for display.

KEY_ARTWORK_URI

Added in 1.1.0
const val KEY_ARTWORK_URI = "android.media.metadata.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.

KEY_AUTHOR

Added in 1.1.0
const val KEY_AUTHOR = "android.media.metadata.AUTHOR": String!

String key: Author name.

The value is a string suitable for display.

KEY_COMPOSER

Added in 1.1.0
const val KEY_COMPOSER = "android.media.metadata.COMPOSER": String!

String key: Composer name.

The value is a string suitable for display.

KEY_DISC_NUMBER

Added in 1.1.0
const val KEY_DISC_NUMBER = "android.media.metadata.DISC_NUMBER": String!

Integer key: Disc number within a collection.

The value is a one-based integer disc number.

KEY_DURATION

Added in 1.1.0
const val KEY_DURATION = "android.media.metadata.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.

KEY_TITLE

Added in 1.1.0
const val KEY_TITLE = "android.media.metadata.TITLE": String!

String key: Track title.

The value is a string suitable for display.

KEY_TRACK_NUMBER

Added in 1.1.0
const val KEY_TRACK_NUMBER = "android.media.metadata.TRACK_NUMBER": String!

Integer key: Track number (such as a track on a CD).

The value is a one-based integer track number.

KEY_YEAR

Added in 1.1.0
const val KEY_YEAR = "android.media.metadata.YEAR": String!

Integer key: Year of publication.

The value is an integer year number.