Added in API level 26

MetricsConstants


class MetricsConstants
kotlin.Any
   ↳ android.media.MediaCodec.MetricsConstants

Summary

Constants
static String

Key to extract the codec being used from the MediaCodec#getMetrics return value.

static String

Key to extract the flag indicating whether the codec is running as an encoder or decoder from the MediaCodec#getMetrics return value.

static String

Key to extract the height (in pixels) of the video track from the MediaCodec#getMetrics return value.

static String

Key to extract the MIME type from the MediaCodec#getMetrics return value.

static String

Key to extract what the codec mode from the MediaCodec#getMetrics return value.

static String

The value returned for the key MODE when the codec is a audio codec.

static String

The value returned for the key MODE when the codec is a video codec.

static String

Key to extract the rotation (in degrees) to properly orient the video from the MediaCodec#getMetrics return.

static String

Key to extract the flag indicating whether the codec is running in secure (DRM) mode from the MediaCodec#getMetrics return value.

static String

Key to extract the width (in pixels) of the video track from the MediaCodec#getMetrics return value.

Constants

CODEC

Added in API level 26
static val CODEC: String

Key to extract the codec being used from the MediaCodec#getMetrics return value. The value is a String.

Value: "android.media.mediacodec.codec"

ENCODER

Added in API level 26
static val ENCODER: String

Key to extract the flag indicating whether the codec is running as an encoder or decoder from the MediaCodec#getMetrics return value. The value is an integer. A 0 indicates decoder; 1 indicates encoder.

Value: "android.media.mediacodec.encoder"

HEIGHT

Added in API level 26
static val HEIGHT: String

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

Value: "android.media.mediacodec.height"

MIME_TYPE

Added in API level 26
static val MIME_TYPE: String

Key to extract the MIME type from the MediaCodec#getMetrics return value. The value is a String.

Value: "android.media.mediacodec.mime"

MODE

Added in API level 26
static val MODE: String

Key to extract what the codec mode from the MediaCodec#getMetrics return value. The value is a String. Values will be one of the constants MODE_AUDIO or MODE_VIDEO.

Value: "android.media.mediacodec.mode"

MODE_AUDIO

Added in API level 26
static val MODE_AUDIO: String

The value returned for the key MODE when the codec is a audio codec.

Value: "audio"

MODE_VIDEO

Added in API level 26
static val MODE_VIDEO: String

The value returned for the key MODE when the codec is a video codec.

Value: "video"

ROTATION

Added in API level 26
static val ROTATION: String

Key to extract the rotation (in degrees) to properly orient the video from the MediaCodec#getMetrics return. The value is a integer.

Value: "android.media.mediacodec.rotation"

SECURE

Added in API level 26
static val SECURE: String

Key to extract the flag indicating whether the codec is running in secure (DRM) mode from the MediaCodec#getMetrics return value. The value is an integer.

Value: "android.media.mediacodec.secure"

WIDTH

Added in API level 26
static val WIDTH: String

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

Value: "android.media.mediacodec.width"