MediaMetadata
.@Deprecated public class Metadata extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALBUM
Deprecated.
|
static int |
ALBUM_ART
Deprecated.
|
static int |
ANY
Deprecated.
|
static int |
ARTIST
Deprecated.
|
static int |
AUDIO_BIT_RATE
Deprecated.
|
static int |
AUDIO_CODEC
Deprecated.
|
static int |
AUDIO_SAMPLE_RATE
Deprecated.
|
static int |
AUTHOR
Deprecated.
|
static int |
BIT_RATE
Deprecated.
|
static int |
BOOLEAN_VAL
Deprecated.
|
static int |
BYTE_ARRAY_VAL
Deprecated.
|
static int |
CD_TRACK_MAX
Deprecated.
|
static int |
CD_TRACK_NUM
Deprecated.
|
static int |
COMMENT
Deprecated.
|
static int |
COMPOSER
Deprecated.
|
static int |
COPYRIGHT
Deprecated.
|
static int |
DATE
Deprecated.
|
static int |
DATE_VAL
Deprecated.
|
static int |
DOUBLE_VAL
Deprecated.
|
static int |
DRM_CRIPPLED
Deprecated.
|
static int |
DURATION
Deprecated.
|
static int |
GENRE
Deprecated.
|
static int |
INTEGER_VAL
Deprecated.
|
static int |
LONG_VAL
Deprecated.
|
static Set<Integer> |
MATCH_ALL
Deprecated.
|
static Set<Integer> |
MATCH_NONE
Deprecated.
|
static int |
MIME_TYPE
Deprecated.
|
static int |
NUM_TRACKS
Deprecated.
|
static int |
PAUSE_AVAILABLE
Deprecated.
Indicate whether the media can be paused
|
static int |
RATING
Deprecated.
|
static int |
SEEK_AVAILABLE
Deprecated.
Indicate whether the media can be seeked
|
static int |
SEEK_BACKWARD_AVAILABLE
Deprecated.
Indicate whether the media can be backward seeked
|
static int |
SEEK_FORWARD_AVAILABLE
Deprecated.
Indicate whether the media can be forward seeked
|
static int |
STRING_VAL
Deprecated.
|
static int |
TITLE
Deprecated.
|
static int |
VIDEO_BIT_RATE
Deprecated.
|
static int |
VIDEO_CODEC
Deprecated.
|
static int |
VIDEO_FRAME
Deprecated.
|
static int |
VIDEO_FRAME_RATE
Deprecated.
|
static int |
VIDEO_HEIGHT
Deprecated.
|
static int |
VIDEO_WIDTH
Deprecated.
|
Constructor and Description |
---|
Metadata()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static int |
firstCustomId()
Deprecated.
|
boolean |
getBoolean(int key)
Deprecated.
Get the boolean value indicated by key
|
byte[] |
getByteArray(int key)
Deprecated.
|
Date |
getDate(int key)
Deprecated.
|
double |
getDouble(int key)
Deprecated.
|
int |
getInt(int key)
Deprecated.
|
long |
getLong(int key)
Deprecated.
|
String |
getString(int key)
Deprecated.
|
boolean |
has(int metadataId)
Deprecated.
|
Set<Integer> |
keySet()
Deprecated.
|
static int |
lastSytemId()
Deprecated.
|
static int |
lastType()
Deprecated.
|
boolean |
parse(Parcel parcel)
Deprecated.
Check a parcel containing metadata is well formed.
|
public static final int ANY
public static final int PAUSE_AVAILABLE
public static final int SEEK_BACKWARD_AVAILABLE
public static final int SEEK_FORWARD_AVAILABLE
public static final int SEEK_AVAILABLE
public static final int TITLE
public static final int COMMENT
public static final int COPYRIGHT
public static final int ALBUM
public static final int ARTIST
public static final int AUTHOR
public static final int COMPOSER
public static final int GENRE
public static final int DATE
public static final int DURATION
public static final int CD_TRACK_NUM
public static final int CD_TRACK_MAX
public static final int RATING
public static final int ALBUM_ART
public static final int VIDEO_FRAME
public static final int BIT_RATE
public static final int AUDIO_BIT_RATE
public static final int VIDEO_BIT_RATE
public static final int AUDIO_SAMPLE_RATE
public static final int VIDEO_FRAME_RATE
public static final int MIME_TYPE
public static final int AUDIO_CODEC
public static final int VIDEO_CODEC
public static final int VIDEO_HEIGHT
public static final int VIDEO_WIDTH
public static final int NUM_TRACKS
public static final int DRM_CRIPPLED
public static final int STRING_VAL
public static final int INTEGER_VAL
public static final int BOOLEAN_VAL
public static final int LONG_VAL
public static final int DOUBLE_VAL
public static final int DATE_VAL
public static final int BYTE_ARRAY_VAL
public boolean parse(Parcel parcel)
1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | metadata total size | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 'M' | 'E' | 'T' | 'A' | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | .... metadata records .... | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
parcel
- With the serialized data. Metadata keeps a
reference on it to access it later on. The caller
should not modify the parcel after this call (and
not call recycle on it.)public boolean has(int metadataId)
public String getString(int key)
public int getInt(int key)
public boolean getBoolean(int key)
public long getLong(int key)
public double getDouble(int key)
public byte[] getByteArray(int key)
public Date getDate(int key)
public static int lastSytemId()
public static int firstCustomId()
public static int lastType()