TRTCVideoEncParam class

编码参数

与视频编码器相关的参数。这些设置决定了远程用户看到的图像质量,也是云端录制的视频文件的图像质量。

Constructors

TRTCVideoEncParam({int videoBitrate = 200, int videoResolution = 60, int videoResolutionMode = 1, int videoFps = 10, int minVideoBitrate = 200, bool enableAdjustRes = false})

Properties

enableAdjustRes bool
字段说明:是否允许调整分辨率
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
minVideoBitrate int
字段说明:最小视频比特率。SDK 将在网络条件差时降低比特率至 minVideoBitrate 指定的值。
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
videoBitrate int
字段说明:目标视频比特率。SDK 将以目标视频比特率编码流,只有在网络条件差时才会主动降低比特率。
getter/setter pair
videoFps int
字段说明:视频采集帧率
getter/setter pair
videoResolution int
字段说明:视频分辨率
getter/setter pair
videoResolutionMode int
字段说明:分辨率模式(横向/纵向)
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
将当前对象转换为 JSON 格式。
toString() String
A string representation of this object.
inherited

Operators

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