Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public final class

MediaItemMetadata

extends Object
java.lang.Object
   ↳ android.support.v7.media.MediaItemMetadata

Class Overview

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
String KEY_ALBUM_ARTIST String key: Album artist name.
String KEY_ALBUM_TITLE String key: Album title.
String KEY_ARTIST String key: Artist name.
String KEY_ARTWORK_URI String key: Artwork Uri.
String KEY_AUTHOR String key: Author name.
String KEY_COMPOSER String key: Composer name.
String KEY_DISC_NUMBER Integer key: Disc number within a collection.
String KEY_DURATION Long key: Item playback duration in milliseconds.
String KEY_TITLE String key: Track title.
String KEY_TRACK_NUMBER Integer key: Track number (such as a track on a CD).
String KEY_YEAR Integer key: Year of publication.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String KEY_ALBUM_ARTIST

String key: Album artist name.

The value is a string suitable for display.

Constant Value: "android.media.metadata.ALBUM_ARTIST"

public static final String KEY_ALBUM_TITLE

String key: Album title.

The value is a string suitable for display.

Constant Value: "android.media.metadata.ALBUM_TITLE"

public static final String KEY_ARTIST

String key: Artist name.

The value is a string suitable for display.

Constant Value: "android.media.metadata.ARTIST"

public static final String KEY_ARTWORK_URI

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.

Constant Value: "android.media.metadata.ARTWORK_URI"

public static final String KEY_AUTHOR

String key: Author name.

The value is a string suitable for display.

Constant Value: "android.media.metadata.AUTHOR"

public static final String KEY_COMPOSER

String key: Composer name.

The value is a string suitable for display.

Constant Value: "android.media.metadata.COMPOSER"

public static final String KEY_DISC_NUMBER

Integer key: Disc number within a collection.

The value is a one-based integer disc number.

Constant Value: "android.media.metadata.DISC_NUMBER"

public static final String KEY_DURATION

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.

Constant Value: "android.media.metadata.DURATION"

public static final String KEY_TITLE

String key: Track title.

The value is a string suitable for display.

Constant Value: "android.media.metadata.TITLE"

public static final String KEY_TRACK_NUMBER

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

The value is a one-based integer track number.

Constant Value: "android.media.metadata.TRACK_NUMBER"

public static final String KEY_YEAR

Integer key: Year of publication.

The value is an integer year number.

Constant Value: "android.media.metadata.YEAR"