The camera capturer configuration.
◆ preference
The camera capture preference.
◆ captureWidth
int nertc.RtcCameraCaptureConfig.captureWidth |
The width (px) of the video image captured by the local camera.
The video encoding resolution is expressed in width x height. It is used to set the video encoding resolution and measure the encoding quality.
- captureWidth: the pixels of the video frame on the horizontal axis, that is, the custom width.
- captureHeight: the pixels of the video frame on the horizontal axis, that is, the custom height.
- Note
- To customize the width of the video image, set preference as kNERtcCameraOutputManual first, and then use captureWidth and captureHeight.
- In manual mode, if the specified collection size is smaller than the encoding size, the encoding parameters will be aligned down to the collection size range.
◆ captureHeight
int nertc.RtcCameraCaptureConfig.captureHeight |
The height (px) of the video image captured by the local camera.
The video encoding resolution is expressed in width x height. It is used to set the video encoding resolution and measure the encoding quality.
- captureWidth: the pixels of the video frame on the horizontal axis, that is, the custom width.
- captureHeight: the pixels of the video frame on the horizontal axis, that is, the custom height.
- Note
- To customize the width of the video image, set preference as CAPTUREPREFERENCEMANUAL first, and then use captureWidth and captureHeight.
- In manual mode, if the specified collection size is smaller than the encoding size, the encoding parameters will be aligned down to the collection size range.
The documentation for this struct was generated from the following file: