Stay organized with collections
Save and categorize content based on your preferences.
MetricsConstants
class MetricsConstants
Summary
Constants
static val FORMAT: String
Key to extract the container format from the MediaExtractor.getMetrics
return value. The value is a String.
Value: "android.media.mediaextractor.fmt"
MIME_TYPE
static val MIME_TYPE: String
Key to extract the container MIME type from the MediaExtractor.getMetrics
return value. The value is a String.
Value: "android.media.mediaextractor.mime"
TRACKS
static val TRACKS: String
Key to extract the number of tracks in the container from the MediaExtractor.getMetrics
return value. The value is an integer.
Value: "android.media.mediaextractor.ntrk"
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# MediaExtractor.MetricsConstants\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMetricsConstants\n================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/MediaExtractor.MetricsConstants \"View this page in Java\") \n\n```\nclass MetricsConstants\n```\n\n|---|----------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.media.MediaExtractor.MetricsConstants](#) |\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FORMAT](#FORMAT:kotlin.String) Key to extract the container format from the [MediaExtractor.getMetrics](/reference/kotlin/android/media/MediaExtractor#getMetrics()) return value. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MIME_TYPE](#MIME_TYPE:kotlin.String) Key to extract the container MIME type from the [MediaExtractor.getMetrics](/reference/kotlin/android/media/MediaExtractor#getMetrics()) return value. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [TRACKS](#TRACKS:kotlin.String) Key to extract the number of tracks in the container from the [MediaExtractor.getMetrics](/reference/kotlin/android/media/MediaExtractor#getMetrics()) return value. |\n\nConstants\n---------\n\n### FORMAT\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val FORMAT: String\n```\n\nKey to extract the container format from the [MediaExtractor.getMetrics](/reference/kotlin/android/media/MediaExtractor#getMetrics()) return value. The value is a String. \n\n Value: \"android.media.mediaextractor.fmt\"\n\n### MIME_TYPE\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val MIME_TYPE: String\n```\n\nKey to extract the container MIME type from the [MediaExtractor.getMetrics](/reference/kotlin/android/media/MediaExtractor#getMetrics()) return value. The value is a String. \n\n Value: \"android.media.mediaextractor.mime\"\n\n### TRACKS\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val TRACKS: String\n```\n\nKey to extract the number of tracks in the container from the [MediaExtractor.getMetrics](/reference/kotlin/android/media/MediaExtractor#getMetrics()) return value. The value is an integer. \n\n Value: \"android.media.mediaextractor.ntrk\""]]