CameraCaptureOutputPreference enum

设置摄像头采集偏好。

Constants

Auto → const CameraCaptureOutputPreference

(默认)自动调整采集参数。SDK 根据实际的采集设备性能及网络情况,选择合适的摄像头输出参数,从而保证设备性能。在这种情况下,预览质量接近于编码器的输出质量。

@JsonValue(0)
const CameraCaptureOutputPreference(0)
Performance → const CameraCaptureOutputPreference

优先保证设备性能。SDK 根据用户在 setVideoEncoderConfiguration 中设置编码器的分辨率和帧率,选择最接近的摄像头输出参数,从而保证设备性能。在这种情况下,预览质量接近于编码器的输出质量。 详见 RtcEngine.setVideoEncoderConfiguration

@JsonValue(1)
const CameraCaptureOutputPreference(1)
Preview → const CameraCaptureOutputPreference

优先保证视频预览质量。SDK选择较高的摄像头输出参数,从而提高预览视频的质量。在这种情况下,会消耗更多的 CPU 及内存做视频前处理。

@JsonValue(2)
const CameraCaptureOutputPreference(2)
Unkown → const CameraCaptureOutputPreference

仅内部使用。

@JsonValue(3)
const CameraCaptureOutputPreference(3)
values → const List<CameraCaptureOutputPreference>

A constant List of the values in this enum, in order of their declaration.

const List<CameraCaptureOutputPreference>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
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
toString() String
Returns a string representation of this object.
override

Operators

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