ZegoMixerVideoConfig class

混流视频配置

配置混流任务的视频参数,帧率、码率、分辨率

Constructors

ZegoMixerVideoConfig(int width, int height, int fps, int bitrate, int quality, ZegoVideoRateControlMode rateControlMode)
ZegoMixerVideoConfig.defaultConfig()
创建默认混流视频配置

Properties

bitrate ↔ int
视频码率,单位为 kbps
read / write
fps ↔ int
视频帧率,开始混流任务后不能修改
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
height ↔ int
视频分辨率高
read / write
quality ↔ int
视频质量,视频码率控制模式参数设置为恒定质量时此设置值有效,有效值范围 0,51,默认值是 23。若想视频质量好点,在 23 的基础上降低质量值测试调整。若想文件大小小一点,在 23 的基础上升高质量值测试调整。以 x 值下的文件大小为例, x + 6 值下的文件大小是 x 值下文件大小的一半,x - 6 值下的文件大小是 x 值下文件大小的两倍。在 web 平台,此属性不生效。
read / write
rateControlMode ZegoVideoRateControlMode
视频码率控制模式。在 web 平台,此属性不生效。
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
width ↔ int
视频分辨率宽
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited