Agora RTC Objective-C API Reference Refactor

Data Fields
CameraCapturerConfiguration Struct Reference

## Data Fields
Optional< const char * > | deviceId
Optional< bool > | followEncodeDimensionRatio
VideoFormat | format

## Constructor & Destructor Documentation

## ◆ CameraCapturerConfiguration()

CameraCapturerConfiguration | ( |  | ) |
| inline

## Field Documentation

## ◆ deviceId

Optional<const char *> deviceId

Camera direction settings (for Android/iOS only). See: CAMERA_DIRECTION. The camera ID. The maximum length is `MAX_DEVICE_ID_LENGTH_TYPE`.

Note
  This parameter is for Windows and macOS only.

## ◆ followEncodeDimensionRatio

Optional<bool> followEncodeDimensionRatio

(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.

## ◆ format

VideoFormat format

(Optional) The format of the video frame. See `VideoFormat`.