Documentation
Interactive Live Streaming Standard (Legacy)
API Reference
Agora Java API Reference for Android
Agora Java API Reference for Android
◆ CameraCapturerConfiguration() [1/3]
The camera capture configuration.
- Parameters
-
◆ 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
-
width | The width (px) of the video image captured by the local camera. |
height | The height (px) of the video image captured by the local camera. |
cameraDirection | The camera direction. See CAMERA_DIRECTION . |
◆ CameraCapturerConfiguration() [3/3]
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
-
◆ CD_640x480
The size of the video image captured by the local camera is 640 × 480.
◆ CD_1280x720
The size of the video image captured by the local camera is 1280 × 720.
◆ CD_1920x1080
The size of the video image captured by the local camera is 1920 × 1080.
◆ preference
The camera capture preference.
- Parameters
-
◆ cameraDirection
The camera direction.
- Parameters
-
cameraDirection | The camera direction:
|
◆ 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
.