CameraCapturerConfiguration
Camera capture configuration.
export class CameraCapturerConfiguration {
deviceId?: string;
format?: VideoFormat;
followEncodeDimensionRatio?: boolean;
}
Properties
- format
- (Optional) Video frame format. See VideoFormat.
- deviceId
- (Optional) Camera ID. Maximum length is MaxDeviceIdLengthType.
- followEncodeDimensionRatio
- (Optional) Whether to follow the video aspect ratio set in setVideoEncoderConfiguration:
- true: (Default) Follow. The SDK crops the captured video according to the set aspect ratio, which also affects the local preview, and the video frames in onCaptureVideoFrame and onPreEncodeVideoFrame.
- false: Do not follow. The SDK does not change the aspect ratio of the captured video frame.