Language

MetadataKey Enum

Definition

public enum MetadataKey
type MetadataKey = 
Inheritance
MetadataKey

Fields

Name Value Description
CdTrackNumber 0

The metadata key to retrieve the numeric string describing the order of the audio data source on its original recording.

Album 1

The metadata key to retrieve the information about the album title of the data source.

Artist 2

The metadata key to retrieve the information about the artist of the data source.

Author 3

The metadata key to retrieve the information about the author of the data source.

Composer 4

The metadata key to retrieve the information about the composer of the data source.

Date 5

The metadata key to retrieve the date when the data source was created or modified.

Genre 6

The metadata key to retrieve the content type or genre of the data source.

Title 7

The metadata key to retrieve the data source title.

Year 8

The metadata key to retrieve the year when the data source was created or modified.

Duration 9

The metadata key to retrieve the playback duration of the data source.

NumTracks 10

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.

Writer 11

The metadata key to retrieve the information of the writer (such as lyricist) of the data source.

Mimetype 12

The metadata key to retrieve the mime type of the data source.

Albumartist 13

The metadata key to retrieve the information about the performers or artist associated with the data source.

DiscNumber 14

The metadata key to retrieve the numberic string that describes which part of a set the audio data source comes from.

Compilation 15

The metadata key to retrieve the music album compilation status.

HasAudio 16

If this key exists the media contains audio content.

HasVideo 17

If this key exists the media contains video content.

VideoWidth 18

If the media contains video, this key retrieves its width.

VideoHeight 19

If the media contains video, this key retrieves its height.

Bitrate 20

This key retrieves the average bitrate (in bits/sec), if available.

Location 23

This key retrieves the location information, if available. The location should be specified according to ISO-6709 standard, under a mp4/3gp box "@xyz".

VideoRotation 24

This key retrieves the video rotation angle in degrees, if available. The video rotation angle may be 0, 90, 180, or 270 degrees.

CaptureFramerate 25

This key retrieves the original capture framerate, if it's available. The capture framerate will be a floating point number.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_CAPTURE_FRAMERATE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

HasImage 26

If this key exists the media contains still image content.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_HAS_IMAGE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ImageCount 27

If the media contains still images, this key retrieves the number of still images.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_IMAGE_COUNT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ImagePrimary 28

If the media contains still images, this key retrieves the image index of the primary image.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_IMAGE_PRIMARY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ImageWidth 29

If the media contains still images, this key retrieves the width of the primary image.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_IMAGE_WIDTH.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ImageHeight 30

If the media contains still images, this key retrieves the height of the primary image.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_IMAGE_HEIGHT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ImageRotation 31

If the media contains still images, this key retrieves the rotation angle (in degrees clockwise) of the primary image. The image rotation angle must be one of 0, 90, 180, or 270 degrees.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_IMAGE_ROTATION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

VideoFrameCount 32

If the media contains video and this key exists, it retrieves the total number of frames in the video sequence.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_VIDEO_FRAME_COUNT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ExifOffset 33

If the media contains EXIF data, this key retrieves the offset (in bytes) of the data.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_EXIF_OFFSET.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ExifLength 34

If the media contains EXIF data, this key retrieves the length (in bytes) of the data.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_EXIF_LENGTH.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ColorStandard 35

This key retrieves the color standard, if available.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_COLOR_STANDARD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ColorTransfer 36

This key retrieves the color transfer, if available.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_COLOR_TRANSFER.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ColorRange 37

This key retrieves the color range, if available.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_COLOR_RANGE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SampleRate 38

This key retrieves the sample rate in Hz, if available. This is a signed 32-bit integer formatted as a string in base 10.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_SAMPLERATE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

BitsPerSample 39

This key retrieves the bits per sample in numbers of bits, if available. This is a signed 32-bit integer formatted as a string in base 10.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_BITS_PER_SAMPLE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

XmpOffset 41

If the media contains XMP data, this key retrieves the offset (in bytes) of the data.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_XMP_OFFSET.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

XmpLength 42

If the media contains XMP data, this key retrieves the length (in bytes) of the data.

Android reference for android.media.MediaMetadataRetriever.METADATA_KEY_XMP_LENGTH.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to