Java android.media MediaMetadataRetriever fields, constructors, methods, implement or subclass

Example usage for Java android.media MediaMetadataRetriever fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.media MediaMetadataRetriever.

The text is from its open source code.

Field

intOPTION_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.
intOPTION_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.
intOPTION_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.
intMETADATA_KEY_CD_TRACK_NUMBER
The metadata key to retrieve the numeric string describing the order of the audio data source on its original recording.
intMETADATA_KEY_ALBUM
The metadata key to retrieve the information about the album title of the data source.
intMETADATA_KEY_ARTIST
The metadata key to retrieve the information about the artist of the data source.
intMETADATA_KEY_AUTHOR
The metadata key to retrieve the information about the author of the data source.
intMETADATA_KEY_COMPOSER
The metadata key to retrieve the information about the composer of the data source.
intMETADATA_KEY_DATE
The metadata key to retrieve the date when the data source was created or modified.
intMETADATA_KEY_GENRE
The metadata key to retrieve the content type or genre of the data source.
intMETADATA_KEY_TITLE
The metadata key to retrieve the data source title.
intMETADATA_KEY_YEAR
The metadata key to retrieve the year when the data source was created or modified.
intMETADATA_KEY_DURATION
The metadata key to retrieve the playback duration of the data source.
intMETADATA_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.
intMETADATA_KEY_WRITER
The metadata key to retrieve the information of the writer (such as lyricist) of the data source.
intMETADATA_KEY_MIMETYPE
The metadata key to retrieve the mime type of the data source.
intMETADATA_KEY_ALBUMARTIST
The metadata key to retrieve the information about the performers or artist associated with the data source.
intMETADATA_KEY_DISC_NUMBER
The metadata key to retrieve the numberic string that describes which part of a set the audio data source comes from.
intMETADATA_KEY_COMPILATION
The metadata key to retrieve the music album compilation status.
intMETADATA_KEY_VIDEO_WIDTH
If the media contains video, this key retrieves its width.
intMETADATA_KEY_VIDEO_HEIGHT
If the media contains video, this key retrieves its height.
intMETADATA_KEY_BITRATE
This key retrieves the average bitrate (in bits/sec), if available.

Constructor

Method

StringextractMetadata(int keyCode)
Call this method after setDataSource().
byte[]getEmbeddedPicture()
Call this method after setDataSource().
BitmapgetFrameAtTime()
Call this method after setDataSource().
BitmapgetFrameAtTime(long timeUs, @Option int option)
Call this method after setDataSource().
BitmapgetFrameAtTime(long timeUs)
Call this method after setDataSource().
voidrelease()
Call it when one is done with the object.
voidsetDataSource(String path)
Sets the data source (file pathname) to use.
voidsetDataSource(FileDescriptor fd)
Sets the data source (FileDescriptor) to use.
voidsetDataSource(MediaDataSource dataSource)
Sets the data source (MediaDataSource) to use.
voidsetDataSource(String uri, Map headers)
Sets the data source (URI) to use.
voidsetDataSource(Context context, Uri uri)
Sets the data source as a content Uri.