public class Metadata extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALBUM |
static int |
ALBUM_ART |
static int |
ANY |
static int |
ARTIST |
static int |
AUDIO_BIT_RATE |
static int |
AUDIO_CODEC |
static int |
AUDIO_SAMPLE_RATE |
static int |
AUTHOR |
static int |
BIT_RATE |
static int |
BOOLEAN_VAL |
static int |
BYTE_ARRAY_VAL |
static int |
CD_TRACK_MAX |
static int |
CD_TRACK_NUM |
static int |
COMMENT |
static int |
COMPOSER |
static int |
COPYRIGHT |
static int |
DATE |
static int |
DATE_VAL |
static int |
DOUBLE_VAL |
static int |
DRM_CRIPPLED |
static int |
DURATION |
static int |
GENRE |
static int |
INTEGER_VAL |
static int |
LONG_VAL |
static Set<Integer> |
MATCH_ALL |
static Set<Integer> |
MATCH_NONE |
static int |
MIME_TYPE |
static int |
NUM_TRACKS |
static int |
PAUSE_AVAILABLE
Indicate whether the media can be paused
|
static int |
RATING |
static int |
SEEK_AVAILABLE
Indicate whether the media can be seeked
|
static int |
SEEK_BACKWARD_AVAILABLE
Indicate whether the media can be backward seeked
|
static int |
SEEK_FORWARD_AVAILABLE
Indicate whether the media can be forward seeked
|
static int |
STRING_VAL |
static int |
TITLE |
static int |
VIDEO_BIT_RATE |
static int |
VIDEO_CODEC |
static int |
VIDEO_FRAME |
static int |
VIDEO_FRAME_RATE |
static int |
VIDEO_HEIGHT |
static int |
VIDEO_WIDTH |
Constructor and Description |
---|
Metadata() |
Modifier and Type | Method and Description |
---|---|
static int |
firstCustomId() |
boolean |
getBoolean(int key)
Get the boolean value indicated by key
|
byte[] |
getByteArray(int key) |
Date |
getDate(int key) |
double |
getDouble(int key) |
int |
getInt(int key) |
long |
getLong(int key) |
String |
getString(int key) |
boolean |
has(int metadataId) |
Set<Integer> |
keySet() |
static int |
lastSytemId() |
static int |
lastType() |
boolean |
parse(Parcel parcel)
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()