im.zego.zegoexpress.entity.ZegoVideoConfig

视频配置

Declared in entity/ZegoVideoConfig.java

Public Attrib Lists

Public Func Lists

Public Attrib Docs

captureWidth

public int captureWidth ()

采集分辨率宽度

captureHeight

public int captureHeight ()

采集分辨率宽度

encodeWidth

public int encodeWidth ()

编码分辨率宽度

encodeHeight

public int encodeHeight ()

采集分辨率宽度

fps

public int fps ()

帧率

bitrate

public int bitrate ()

码率,单位为 kbps

codecID

public ZegoVideoCodecID codecID ()

要使用的编码器

Public Func Docs

ZegoVideoConfig

public ZegoVideoConfig (ZegoVideoConfigPreset preset)

通过预设枚举值创建视频配置

ZegoVideoConfig

public ZegoVideoConfig ()

创建默认视频配置(360p, 15fps, 600000bps)

setCaptureResolution

public void setCaptureResolution (int width, int height)

设置采集分辨率的宽和高

setEncodeResolution

public void setEncodeResolution (int width, int height)

设置编码分辨率的宽和高

setVideoFPS

public void setVideoFPS (int fps)

设置视频帧率

setVideoBitrate

public void setVideoBitrate (int bitrate)

设置视频码率,单位为 kbps

setCodecID

public void setCodecID (ZegoVideoCodecID codecID)

设置编码器

ZegoVideoConfig

public ZegoVideoConfig (ZegoResolution resolution)