NERtcCameraCaptureConfig class Null safety

the configuration for capturing data from cameras

To use the user-defined size of the captured video, set the preferences to NERtcCameraCapturePreference.kManual, and set the width and height of the captured video using captureWidth and captureHeight. In manual mode, if the specified capture width and height is smaller than the encoding width and height, the encoding parameters will scale down to align the capture size.

Constructors

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

Properties

captureHeight int
The local video height. Unit: px. The resolution of video encoding uses width x height used to measure encoding quality.
final
captureWidth int
The local video width. Unit: px. The resolution of video encoding uses width x height used to measure encoding quality.
final
hashCode int
The hash code for this object.
read-only, inherited
preference int
Set the preferences for capturing data from cameras NERtcCameraCapturePreference
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
A string representation of this object.
inherited

Operators

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

Constants

kDefault → const NERtcCameraCaptureConfig
Default capture configuration
NERtcCameraCaptureConfig(NERtcCameraCapturePreference.kDefault, 0, 0)
kQuality → const NERtcCameraCaptureConfig
Video preview quality is preferred
NERtcCameraCaptureConfig(NERtcCameraCapturePreference.kQuality, 0, 0)