VideoEncoderConfiguration class Null safety

视频编码属性的定义。

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

VideoEncoderConfiguration({VideoDimensions? dimensions, VideoFrameRate? frameRate, VideoFrameRate? minFrameRate, int? bitrate, int? minBitrate, VideoOutputOrientationMode? orientationMode, DegradationPreference? degradationPrefer, VideoMirrorMode? mirrorMode})
Constructs a VideoEncoderConfiguration
VideoEncoderConfiguration.fromJson(Map<String, dynamic> json)
factory

Properties

bitrate int?
视频编码的码率。单位为 Kbps。你可以根据场景需要,参考下面的视频基准码率参考表,手动设置你想要的码率。 若设置的视频码率超出合理范围,SDK 会自动按照合理区间处理码率。 [...]
@JsonKey(includeIfNull: false), read / write
degradationPrefer DegradationPreference?
带宽受限时,视频编码降级偏好。 详见 DegradationPreference
@JsonKey(includeIfNull: false), read / write
dimensions VideoDimensions?
视频编码的分辨率 (px),用于衡量编码质量,以长 × 宽表示,默认值为 640 × 360。 用户可以自行设置分辨率,也可以在如下列表中直接选择想要的分辨率: [...]
@JsonKey(includeIfNull: false), read / write
frameRate VideoFrameRate?
视频编码的帧率(fps),默认值为 15。用户可以自行设置帧率,也可以在 VideoFrameRate 直接选择想要的帧率。建议不要超过 30 帧。
@JsonKey(includeIfNull: false), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
minBitrate int?
最低视频编码码率。单位为 Kbps。 Agora SDK 会根据网络条件进行码率自适应。 该参数强制视频编码器输出高质量图片。如果将参数设为高于默认值, 在网络状况不佳情况下可能会导致网络丢包,并影响视频播放的流畅度。因此如非对画质有特殊需求,Agora 建议不要修改该参数的值。
@JsonKey(includeIfNull: false), read / write
minFrameRate VideoFrameRate?
最低视频编码帧率(fps)。默认值为 VideoFrameRate.Min,表示使用系统默认的最低编码帧率。
@JsonKey(includeIfNull: false), read / write
mirrorMode VideoMirrorMode?
本地发送视频的镜像模式,只影响远端用户看到的视频画面。 详见 VideoMirrorMode
@JsonKey(includeIfNull: false), read / write
orientationMode VideoOutputOrientationMode?
视频编码的方向模式。 详见 VideoOutputOrientationMode
@JsonKey(includeIfNull: false), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

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