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

Public Member Functions

int getValue ()
 

Public Attributes

 CAPTURER_OUTPUT_PREFERENCE_AUTO =(0)
 
 CAPTURER_OUTPUT_PREFERENCE_PERFORMANCE =(1)
 
 CAPTURER_OUTPUT_PREFERENCE_PREVIEW =(2)
 
 CAPTURER_OUTPUT_PREFERENCE_MANUAL =(3)
 

Detailed Description

Sets the camera capturer configuration.

Member Data Documentation

◆ CAPTURER_OUTPUT_PREFERENCE_AUTO

io.agora.rtc.video.CameraCapturerConfiguration.CAPTURER_OUTPUT_PREFERENCE.CAPTURER_OUTPUT_PREFERENCE_AUTO =(0)

0:(default) Self-adapts the camera output parameters to the system performance and network conditions to balance CPU consumption and video preview quality.

◆ CAPTURER_OUTPUT_PREFERENCE_PERFORMANCE

io.agora.rtc.video.CameraCapturerConfiguration.CAPTURER_OUTPUT_PREFERENCE.CAPTURER_OUTPUT_PREFERENCE_PERFORMANCE =(1)

1: Prioritizes the system performance. The SDK chooses the dimension and frame rate of the local camera capture closest to those set by setVideoEncoderConfiguration.

◆ CAPTURER_OUTPUT_PREFERENCE_PREVIEW

io.agora.rtc.video.CameraCapturerConfiguration.CAPTURER_OUTPUT_PREFERENCE.CAPTURER_OUTPUT_PREFERENCE_PREVIEW =(2)

2: Prioritizes the local preview quality. The SDK chooses higher camera output parameters to improve the local video preview quality. This option requires extra CPU and RAM usage for video pre-processing.

◆ CAPTURER_OUTPUT_PREFERENCE_MANUAL

io.agora.rtc.video.CameraCapturerConfiguration.CAPTURER_OUTPUT_PREFERENCE.CAPTURER_OUTPUT_PREFERENCE_MANUAL =(3)

3: Allows you to customize the width and height of the video image captured by the local camera.