Example usage for Java android.media MediaMetadataRetriever fields, constructors, methods, implement or subclass
The text is from its open source code.
int | OPTION_NEXT_SYNC This option is used with #getFrameAtTime(long,int) to retrieve a sync (or key) frame associated with a data source that is located right after or at the given time. |
int | OPTION_CLOSEST_SYNC This option is used with #getFrameAtTime(long,int) to retrieve a sync (or key) frame associated with a data source that is located closest to (in time) or at the given time. |
int | OPTION_CLOSEST This option is used with #getFrameAtTime(long,int) to retrieve a frame (not necessarily a key frame) associated with a data source that is located closest to or at the given time. |
int | METADATA_KEY_CD_TRACK_NUMBER The metadata key to retrieve the numeric string describing the order of the audio data source on its original recording. |
int | METADATA_KEY_ALBUM The metadata key to retrieve the information about the album title of the data source. |
int | METADATA_KEY_ARTIST The metadata key to retrieve the information about the artist of the data source. |
int | METADATA_KEY_AUTHOR The metadata key to retrieve the information about the author of the data source. |
int | METADATA_KEY_COMPOSER The metadata key to retrieve the information about the composer of the data source. |
int | METADATA_KEY_DATE The metadata key to retrieve the date when the data source was created or modified. |
int | METADATA_KEY_GENRE The metadata key to retrieve the content type or genre of the data source. |
int | METADATA_KEY_TITLE The metadata key to retrieve the data source title. |
int | METADATA_KEY_YEAR The metadata key to retrieve the year when the data source was created or modified. |
int | METADATA_KEY_DURATION The metadata key to retrieve the playback duration of the data source. |
int | METADATA_KEY_NUM_TRACKS The metadata key to retrieve the number of tracks, such as audio, video, text, in the data source, such as a mp4 or 3gpp file. |
int | METADATA_KEY_WRITER The metadata key to retrieve the information of the writer (such as lyricist) of the data source. |
int | METADATA_KEY_MIMETYPE The metadata key to retrieve the mime type of the data source. |
int | METADATA_KEY_ALBUMARTIST The metadata key to retrieve the information about the performers or artist associated with the data source. |
int | METADATA_KEY_DISC_NUMBER The metadata key to retrieve the numberic string that describes which part of a set the audio data source comes from. |
int | METADATA_KEY_COMPILATION The metadata key to retrieve the music album compilation status. |
int | METADATA_KEY_VIDEO_WIDTH If the media contains video, this key retrieves its width. |
int | METADATA_KEY_VIDEO_HEIGHT If the media contains video, this key retrieves its height. |
int | METADATA_KEY_BITRATE This key retrieves the average bitrate (in bits/sec), if available. |
String | extractMetadata(int keyCode) Call this method after setDataSource(). |
byte[] | getEmbeddedPicture() Call this method after setDataSource(). |
Bitmap | getFrameAtTime() Call this method after setDataSource(). |
Bitmap | getFrameAtTime(long timeUs, @Option int option) Call this method after setDataSource(). |
Bitmap | getFrameAtTime(long timeUs) Call this method after setDataSource(). |
void | release() Call it when one is done with the object. |
void | setDataSource(String path) Sets the data source (file pathname) to use. |
void | setDataSource(FileDescriptor fd) Sets the data source (FileDescriptor) to use. |
void | setDataSource(MediaDataSource dataSource) Sets the data source (MediaDataSource) to use. |
void | setDataSource(String uri, Map Sets the data source (URI) to use. |
void | setDataSource(Context context, Uri uri) Sets the data source as a content Uri. |