Stay organized with collections
Save and categorize content based on your preferences.
VideoEncoder
class 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
static val AV1: Int
AV1 video codec
Value: 8
DEFAULT
static val DEFAULT: Int
Default video codec
Value: 0
DOLBY_VISION
static val DOLBY_VISION: Int
Dolby Vision video codec
Value: 7
H263
static val H263: Int
H.263 video codec
Value: 1
H264
static val H264: Int
H.264 video codec
Value: 2
HEVC
static val HEVC: Int
HEVC/H.265 video codec
Value: 5
MPEG_4_SP
static val MPEG_4_SP: Int
MPEG-4 SP video codec
Value: 3
VP8
static val VP8: Int
VP8 video codec
Value: 4
VP9
static val VP9: Int
VP9 video codec
Value: 6
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-08-20 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-08-20 UTC."],[],[],null,[]]