Agora C++ API Reference for All Platforms
agora::rtc::CameraCapturerConfiguration Struct Reference

#include <IAgoraRtcEngine.h>

Public Member Functions

 CameraCapturerConfiguration ()
 
 CameraCapturerConfiguration (int width, int height)
 

Public Attributes

CAPTURER_OUTPUT_PREFERENCE preference
 
int captureWidth
 
int captureHeight
 
CAMERA_DIRECTION cameraDirection
 

Detailed Description

Camera capturer configuration.

Constructor & Destructor Documentation

◆ CameraCapturerConfiguration() [1/2]

agora::rtc::CameraCapturerConfiguration::CameraCapturerConfiguration ( )
inline

◆ CameraCapturerConfiguration() [2/2]

agora::rtc::CameraCapturerConfiguration::CameraCapturerConfiguration ( int  width,
int  height 
)
inline

Member Data Documentation

◆ preference

CAPTURER_OUTPUT_PREFERENCE agora::rtc::CameraCapturerConfiguration::preference

Camera capturer preference settings. See: CAPTURER_OUTPUT_PREFERENCE.

◆ captureWidth

int agora::rtc::CameraCapturerConfiguration::captureWidth

The width (px) of the video image captured by the local camera. To customize the width of the video image, set preference as CAPTURER_OUTPUT_PREFERENCE_MANUAL (3) first, and then use captureWidth.

Since
v3.3.0

◆ captureHeight

int agora::rtc::CameraCapturerConfiguration::captureHeight

The height (px) of the video image captured by the local camera. To customize the height of the video image, set preference as CAPTURER_OUTPUT_PREFERENCE_MANUAL (3) first, and then use captureHeight.

Since
v3.3.0

◆ cameraDirection

CAMERA_DIRECTION agora::rtc::CameraCapturerConfiguration::cameraDirection

Camera direction settings (for Android/iOS only). See: CAMERA_DIRECTION.