NERtcCameraCaptureConfig class

摄像头采集配置

如果您需要自定义本地采集的视频尺寸,请先将 preference 设为 NERtcCameraCapturePreference.kManual,再通过 captureWidth 和 captureHeight 设置采集的视频宽度。手动模式下,如果指定的采集宽高小于编码宽高,编码参数会被下调对齐到采集的尺寸范围内。

Constructors

NERtcCameraCaptureConfig(int preference, int captureWidth, int captureHeight)
const
NERtcCameraCaptureConfig.manual(int captureWidth, int captureHeight)

Properties

captureHeight int
本地采集的视频高度,单位为 px。 视频编码分辨率以宽 x 高表示,用于设置视频编码分辨率,以衡量编码质量。
final
captureWidth int
本地采集的视频宽度,单位为 px。 视频编码分辨率以宽 x 高表示,用于设置视频编码分辨率,以衡量编码质量。
final
hashCode int
The hash code for this object.
no setterinherited
preference int
摄像头的采集偏好 NERtcCameraCapturePreference
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Constants

kDefault → const NERtcCameraCaptureConfig
默认采集配置
kQuality → const NERtcCameraCaptureConfig
优先保证视频预览质量