The camera capturer preference.

export class CameraCapturerConfiguration {
  deviceId?: string;
  format?: VideoFormat;

  followEncodeDimensionRatio?: boolean;



(Optional) The format of the video frame. See VideoFormat.
The camera ID. The maximum length is MaxDeviceIdLengthType.
(Optional) 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.