Agora Java API Reference for Android
io.agora.rtc.video.CameraCapturerConfiguration Class Reference

Classes

enum  CAMERA_DIRECTION
 
class  CaptureDimensions
 
enum  CAPTURER_OUTPUT_PREFERENCE
 

Public Member Functions

 CameraCapturerConfiguration (CAPTURER_OUTPUT_PREFERENCE preference, CAMERA_DIRECTION cameraDirection)
 
 CameraCapturerConfiguration (int width, int height, CAMERA_DIRECTION cameraDirection)
 
 CameraCapturerConfiguration (CaptureDimensions dimensions, CAMERA_DIRECTION cameraDirection)
 

Public Attributes

CAPTURER_OUTPUT_PREFERENCE preference
 
CAMERA_DIRECTION cameraDirection
 
CaptureDimensions dimensions
 

Static Public Attributes

static final CaptureDimensions CD_640x480 = new CaptureDimensions(640, 480)
 
static final CaptureDimensions CD_1280x720 = new CaptureDimensions(1280, 720)
 
static final CaptureDimensions CD_1920x1080 = new CaptureDimensions(1920, 1080)
 

Detailed Description

The definition of CameraCapturerConfiguration.

Constructor & Destructor Documentation

◆ CameraCapturerConfiguration() [1/3]

io.agora.rtc.video.CameraCapturerConfiguration.CameraCapturerConfiguration ( CAPTURER_OUTPUT_PREFERENCE  preference,
CAMERA_DIRECTION  cameraDirection 
)

The camera capture configuration.

Parameters
preferenceThe camera capture preference. For details, see CAPTURER_OUTPUT_PREFERENCE.
cameraDirectionThe camera direction. For details, see CAMERA_DIRECTION.

◆ CameraCapturerConfiguration() [2/3]

io.agora.rtc.video.CameraCapturerConfiguration.CameraCapturerConfiguration ( int  width,
int  height,
CAMERA_DIRECTION  cameraDirection 
)

Sets the local camera capture behavior.

Before calling this method, ensure that you have called setCameraCapturerConfiguration to set the camera capture configuration as AgoraCameraCaptureOutputPreferenceManual(3).

Parameters
widthThe width (px) of the video image captured by the local camera.
heightThe height (px) of the video image captured by the local camera.
cameraDirectionThe camera direction. See CAMERA_DIRECTION.

◆ CameraCapturerConfiguration() [3/3]

io.agora.rtc.video.CameraCapturerConfiguration.CameraCapturerConfiguration ( CaptureDimensions  dimensions,
CAMERA_DIRECTION  cameraDirection 
)

Sets the local camera capture behavior.

Before calling this method, ensure that you have called setCameraCapturerConfiguration to set the camera capture configuration as AgoraCameraCaptureOutputPreferenceManual(3).

Parameters
dimensionsThe size of the video image captured by the local camera. For details, see CaptureDimensions.
cameraDirectionThe camera direction. See CAMERA_DIRECTION.

Member Data Documentation

◆ CD_640x480

final CaptureDimensions io.agora.rtc.video.CameraCapturerConfiguration.CD_640x480 = new CaptureDimensions(640, 480)
static

The size of the video image captured by the local camera is 640 × 480.

◆ CD_1280x720

final CaptureDimensions io.agora.rtc.video.CameraCapturerConfiguration.CD_1280x720 = new CaptureDimensions(1280, 720)
static

The size of the video image captured by the local camera is 1280 × 720.

◆ CD_1920x1080

final CaptureDimensions io.agora.rtc.video.CameraCapturerConfiguration.CD_1920x1080 = new CaptureDimensions(1920, 1080)
static

The size of the video image captured by the local camera is 1920 × 1080.

◆ preference

CAPTURER_OUTPUT_PREFERENCE io.agora.rtc.video.CameraCapturerConfiguration.preference

The camera capture preference.

Parameters
preferenceThe camera capture preference. For details, see CAPTURER_OUTPUT_PREFERENCE.

◆ cameraDirection

CAMERA_DIRECTION io.agora.rtc.video.CameraCapturerConfiguration.cameraDirection

The camera direction.

Parameters
cameraDirectionThe camera direction:

◆ dimensions

CaptureDimensions io.agora.rtc.video.CameraCapturerConfiguration.dimensions

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