CameraCapturerConfiguration
The camera capturer preference.
export class CameraCapturerConfiguration { cameraDirection?: CameraDirection; deviceId?: string; format?: VideoFormat; followEncodeDimensionRatio?: boolean; }
Attributes
- cameraDirection
-
Attention: This parameter applies to Android and iOS only.The camera direction. See CameraDirection.
- format
- The format of the video frame. See VideoFormat.
- followEncodeDimensionRatio
- Whether to follow the video aspect ratio set in setVideoEncoderConfiguration:
true
: (Default) Follow the set video aspect ratio. The SDK crops the captured video according to the set video aspect ratio and synchronously changes the local preview screen and the video frame in onCaptureVideoFrame and onPreEncodeVideoFrame.false
: Do not follow the system default audio playback device. The SDK does not change the aspect ratio of the captured video frame.