Added in API level 3

VideoEncoder


class VideoEncoder
kotlin.Any
   ↳ android.media.MediaRecorder.VideoEncoder

Defines the video encoding. These constants are used with MediaRecorder.setVideoEncoder(int).

Summary

Constants
static Int

APV video codec

static Int

AV1 video codec

static Int

Default video codec

static Int

Dolby Vision video codec

static Int

H.

static Int

H.

static Int

HEVC/H.

static Int

MPEG-4 SP video codec

static Int

VP8 video codec

static Int

VP9 video codec

Constants

APV

static val APV: Int

APV video codec

Value: 9

AV1

Added in API level 33
static val AV1: Int

AV1 video codec

Value: 8

DEFAULT

Added in API level 3
static val DEFAULT: Int

Default video codec

Value: 0

DOLBY_VISION

Added in API level 33
static val DOLBY_VISION: Int

Dolby Vision video codec

Value: 7

H263

Added in API level 3
static val H263: Int

H.263 video codec

Value: 1

H264

Added in API level 3
static val H264: Int

H.264 video codec

Value: 2

HEVC

Added in API level 24
static val HEVC: Int

HEVC/H.265 video codec

Value: 5

MPEG_4_SP

Added in API level 3
static val MPEG_4_SP: Int

MPEG-4 SP video codec

Value: 3

VP8

Added in API level 21
static val VP8: Int

VP8 video codec

Value: 4

VP9

Added in API level 33
static val VP9: Int

VP9 video codec

Value: 6