# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Inherited Methods

# MediaPlayer.MetricsConstants

`public static final class MediaPlayer.MetricsConstants`
`extends Object` ``

java.lang.Object
↳ | android.media.MediaPlayer.MetricsConstants

## Summary

### Constants
`String` | `CODEC_AUDIO` Key to extract the codec being used to decode the audio track from the `MediaPlayer#getMetrics` return value.
`String` | `CODEC_VIDEO` Key to extract the codec being used to decode the video track from the `MediaPlayer#getMetrics` return value.
`String` | `DURATION` Key to extract the duration (in milliseconds) of the media being played from the `MediaPlayer#getMetrics` return value.
`String` | `ERRORS` Key to extract the count of errors encountered while playing the media from the `MediaPlayer#getMetrics` return value.
`String` | `ERROR_CODE` Key to extract an (optional) error code detected while playing the media from the `MediaPlayer#getMetrics` return value.
`String` | `FRAMES` Key to extract the count of video frames played from the `MediaPlayer#getMetrics` return value.
`String` | `FRAMES_DROPPED` Key to extract the count of video frames dropped from the `MediaPlayer#getMetrics` return value.
`String` | `HEIGHT` Key to extract the height (in pixels) of the video track from the `MediaPlayer#getMetrics` return value.
`String` | `MIME_TYPE_AUDIO` Key to extract the MIME type of the audio track from the `MediaPlayer#getMetrics` return value.
`String` | `MIME_TYPE_VIDEO` Key to extract the MIME type of the video track from the `MediaPlayer#getMetrics` return value.
`String` | `PLAYING` Key to extract the playing time (in milliseconds) of the media being played from the `MediaPlayer#getMetrics` return value.
`String` | `WIDTH` Key to extract the width (in pixels) of the video track from the `MediaPlayer#getMetrics` return value.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### CODEC_AUDIO

    public static final String CODEC_AUDIO

Key to extract the codec being used to decode the audio track from the `MediaPlayer#getMetrics` return value. The value is a String.

Constant Value: "android.media.mediaplayer.audio.codec"

### CODEC_VIDEO

    public static final String CODEC_VIDEO

Key to extract the codec being used to decode the video track from the `MediaPlayer#getMetrics` return value. The value is a String.

Constant Value: "android.media.mediaplayer.video.codec"

### DURATION

    public static final String DURATION

Key to extract the duration (in milliseconds) of the media being played from the `MediaPlayer#getMetrics` return value. The value is a long.

Constant Value: "android.media.mediaplayer.durationMs"

### ERRORS

    public static final String ERRORS

Key to extract the count of errors encountered while playing the media from the `MediaPlayer#getMetrics` return value. The value is an integer.

Constant Value: "android.media.mediaplayer.err"

### ERROR_CODE

    public static final String ERROR_CODE

Key to extract an (optional) error code detected while playing the media from the `MediaPlayer#getMetrics` return value. The value is an integer.

Constant Value: "android.media.mediaplayer.errcode"

### FRAMES

    public static final String FRAMES

Key to extract the count of video frames played from the `MediaPlayer#getMetrics` return value. The value is an integer.

Constant Value: "android.media.mediaplayer.frames"

### FRAMES_DROPPED

    public static final String FRAMES_DROPPED

Key to extract the count of video frames dropped from the `MediaPlayer#getMetrics` return value. The value is an integer.

Constant Value: "android.media.mediaplayer.dropped"

### HEIGHT

    public static final String HEIGHT

Key to extract the height (in pixels) of the video track from the `MediaPlayer#getMetrics` return value. The value is an integer.

Constant Value: "android.media.mediaplayer.height"

### MIME_TYPE_AUDIO

    public static final String MIME_TYPE_AUDIO

Key to extract the MIME type of the audio track from the `MediaPlayer#getMetrics` return value. The value is a String.

Constant Value: "android.media.mediaplayer.audio.mime"

### MIME_TYPE_VIDEO

    public static final String MIME_TYPE_VIDEO

Key to extract the MIME type of the video track from the `MediaPlayer#getMetrics` return value. The value is a String.

Constant Value: "android.media.mediaplayer.video.mime"

### PLAYING

    public static final String PLAYING

Key to extract the playing time (in milliseconds) of the media being played from the `MediaPlayer#getMetrics` return value. The value is a long.

Constant Value: "android.media.mediaplayer.playingMs"

### WIDTH

    public static final String WIDTH

Key to extract the width (in pixels) of the video track from the `MediaPlayer#getMetrics` return value. The value is an integer.

Constant Value: "android.media.mediaplayer.width"

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*