# MediaExtractor.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/MediaExtractor.MetricsConstants "View this page in Java")  

```
class MetricsConstants
```

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

## Summary

|                                                                                                                                                                                                      Constants                                                                                                                                                                                                      ||
|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FORMAT](https://developer.android.com/reference/kotlin/android/media/MediaExtractor.MetricsConstants#FORMAT:kotlin.String) Key to extract the container format from the[MediaExtractor.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaExtractor#getMetrics())return value.                  |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MIME_TYPE](https://developer.android.com/reference/kotlin/android/media/MediaExtractor.MetricsConstants#MIME_TYPE:kotlin.String) Key to extract the container MIME type from the[MediaExtractor.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaExtractor#getMetrics())return value.         |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [TRACKS](https://developer.android.com/reference/kotlin/android/media/MediaExtractor.MetricsConstants#TRACKS:kotlin.String) Key to extract the number of tracks in the container from the[MediaExtractor.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaExtractor#getMetrics())return value. |

## Constants

### FORMAT

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

```
static val FORMAT: String
```

Key to extract the container format from the[MediaExtractor.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaExtractor#getMetrics())return value. The value is a String.  

    Value: "android.media.mediaextractor.fmt"

### MIME_TYPE

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

```
static val MIME_TYPE: String
```

Key to extract the container MIME type from the[MediaExtractor.getMetrics](https://developer.android.com/reference/kotlin/android/media/MediaExtractor#getMetrics())return value. The value is a String.  

    Value: "android.media.mediaextractor.mime"

### TRACKS

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

```
static val TRACKS: String
```

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

    Value: "android.media.mediaextractor.ntrk"