# MediaRecorder.MetricsConstants

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# MetricsConstants

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/media/MediaRecorder.MetricsConstants "View this page in Java")  

```
class MetricsConstants
```

|---|----------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                               ||
| ↳ | [android.media.MediaRecorder.MetricsConstants](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#) |

## Summary

|                                                                                                                                                                                                                       Constants                                                                                                                                                                                                                        ||
|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [AUDIO_BITRATE](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#AUDIO_BITRATE:kotlin.String) Key to extract the audio bitrate from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                                                   |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [AUDIO_CHANNELS](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#AUDIO_CHANNELS:kotlin.String) Key to extract the number of audio channels from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                                      |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [AUDIO_SAMPLERATE](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#AUDIO_SAMPLERATE:kotlin.String) Key to extract the audio samplerate from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                                          |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [AUDIO_TIMESCALE](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#AUDIO_TIMESCALE:kotlin.String) Key to extract the audio timescale from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                                             |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CAPTURE_FPS](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#CAPTURE_FPS:kotlin.String) Key to extract the video capture frame rate from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                                            |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [CAPTURE_FPS_ENABLE](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#CAPTURE_FPS_ENABLE:kotlin.String) Key to extract the video capture framerate enable value from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                  |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FRAMERATE](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#FRAMERATE:kotlin.String) Key to extract the intended playback frame rate from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                                            |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [HEIGHT](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#HEIGHT:kotlin.String) Key to extract the height (in pixels) of the captured video from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                                      |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MOVIE_TIMESCALE](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#MOVIE_TIMESCALE:kotlin.String) Key to extract the recorded movies time units from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                                  |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ROTATION](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#ROTATION:kotlin.String) Key to extract the rotation (in degrees) to properly orient the video from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                        |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [VIDEO_BITRATE](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#VIDEO_BITRATE:kotlin.String) Key to extract the video bitrate from being used from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                                   |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [VIDEO_IFRAME_INTERVAL](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#VIDEO_IFRAME_INTERVAL:kotlin.String) Key to extract the value for how often video iframes are generated from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [VIDEO_LEVEL](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#VIDEO_LEVEL:kotlin.String) Key to extract the video encoding level from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                                                |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [VIDEO_PROFILE](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#VIDEO_PROFILE:kotlin.String) Key to extract the video encoding profile from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                                          |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [VIDEO_TIMESCALE](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#VIDEO_TIMESCALE:kotlin.String) Key to extract the recorded video time units from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                                   |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [WIDTH](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.MetricsConstants#WIDTH:kotlin.String) Key to extract the width (in pixels) of the captured video from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return.                                         |

## Constants

### AUDIO_BITRATE

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val AUDIO_BITRATE: String
```

Key to extract the audio bitrate from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer.  

    Value: "android.media.mediarecorder.audio-bitrate"

### AUDIO_CHANNELS

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val AUDIO_CHANNELS: String
```

Key to extract the number of audio channels from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer.  

    Value: "android.media.mediarecorder.audio-channels"

### AUDIO_SAMPLERATE

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val AUDIO_SAMPLERATE: String
```

Key to extract the audio samplerate from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer.  

    Value: "android.media.mediarecorder.audio-samplerate"

### AUDIO_TIMESCALE

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val AUDIO_TIMESCALE: String
```

Key to extract the audio timescale from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer.  

    Value: "android.media.mediarecorder.audio-timescale"

### CAPTURE_FPS

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CAPTURE_FPS: String
```

Key to extract the video capture frame rate from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is a double.  

    Value: "android.media.mediarecorder.capture-fps"

### CAPTURE_FPS_ENABLE

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val CAPTURE_FPS_ENABLE: String
```

Key to extract the video capture framerate enable value from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer.  

    Value: "android.media.mediarecorder.capture-fpsenable"

### FRAMERATE

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FRAMERATE: String
```

Key to extract the intended playback frame rate from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer.  

    Value: "android.media.mediarecorder.frame-rate"

### HEIGHT

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val HEIGHT: String
```

Key to extract the height (in pixels) of the captured video from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer.  

    Value: "android.media.mediarecorder.height"

### MOVIE_TIMESCALE

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val MOVIE_TIMESCALE: String
```

Key to extract the recorded movies time units from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer. A value of 1000 indicates that the movie's timing is in milliseconds.  

    Value: "android.media.mediarecorder.movie-timescale"

### ROTATION

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ROTATION: String
```

Key to extract the rotation (in degrees) to properly orient the video from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer.  

    Value: "android.media.mediarecorder.rotation"

### VIDEO_BITRATE

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val VIDEO_BITRATE: String
```

Key to extract the video bitrate from being used from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer.  

    Value: "android.media.mediarecorder.video-bitrate"

### VIDEO_IFRAME_INTERVAL

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val VIDEO_IFRAME_INTERVAL: String
```

Key to extract the value for how often video iframes are generated from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer.  

    Value: "android.media.mediarecorder.video-iframe-interval"

### VIDEO_LEVEL

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val VIDEO_LEVEL: String
```

Key to extract the video encoding level from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer.  

    Value: "android.media.mediarecorder.video-encoder-level"

### VIDEO_PROFILE

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val VIDEO_PROFILE: String
```

Key to extract the video encoding profile from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer.  

    Value: "android.media.mediarecorder.video-encoder-profile"

### VIDEO_TIMESCALE

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val VIDEO_TIMESCALE: String
```

Key to extract the recorded video time units from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer. A value of 1000 indicates that the video's timing is in milliseconds.  

    Value: "android.media.mediarecorder.video-timescale"

### WIDTH

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val WIDTH: String
```

Key to extract the width (in pixels) of the captured video from the[MediaRecorder.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaRecorder#getMetrics())return. The value is an integer.  

    Value: "android.media.mediarecorder.width"