public class NERtcVideoConfig extends NERtcEncodeConfig
限定符和类型 | 类和说明 |
---|---|
static class |
NERtcVideoConfig.NERtcDegradationPreference
带宽受限时的视频编码降级偏好。
|
NERtcEncodeConfig.NERtcVideoFrameRate
限定符和类型 | 字段和说明 |
---|---|
int |
colorFormat
视频采集颜色空间格式,默认为 Texture。
|
NERtcVideoConfig.NERtcDegradationPreference |
degradationPrefer
带宽受限时的视频编码降级偏好。
|
boolean |
frontCamera
摄像头位置是否为前置摄像头。
|
int |
height
视频编码分辨率,衡量编码质量,以宽x高表示。
|
int |
videoCropMode
视频裁剪模式,宽高比。
|
int |
width
视频编码分辨率,衡量编码质量,以宽x高表示。
|
bitrate, frameRate, minBitrate, minFramerate, videoProfile
构造器和说明 |
---|
NERtcVideoConfig() |
public int width
注意:自定义视频采集场景下,width 和 height 设置无效,会自动根据 maxProfile 缩放。
public int height
注意:自定义视频采集场景下,width 和 height 设置无效,会自动根据 maxProfile 缩放。
public boolean frontCamera
public int colorFormat
public NERtcVideoConfig.NERtcDegradationPreference degradationPrefer
public int videoCropMode
NERtcConstants.VideoCropMode#DEFAULT
,
NERtcConstants.VideoCropMode#CROP_16x9
,
NERtcConstants.VideoCropMode#CROP_4x3
,
NERtcConstants.VideoCropMode#CROP_1x1