Agora Java API Reference for Android
|
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) |
The definition of CameraCapturerConfiguration.
io.agora.rtc.video.CameraCapturerConfiguration.CameraCapturerConfiguration | ( | CAPTURER_OUTPUT_PREFERENCE | preference, |
CAMERA_DIRECTION | cameraDirection | ||
) |
The camera capture configuration.
preference | The camera capture preference. For details, see CAPTURER_OUTPUT_PREFERENCE . |
cameraDirection | The camera direction. For details, see CAMERA_DIRECTION . |
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)
.
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 . |
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)
.
dimensions | The size of the video image captured by the local camera. For details, see CaptureDimensions . |
cameraDirection | The camera direction. See CAMERA_DIRECTION . |
|
static |
The size of the video image captured by the local camera is 640 × 480.
|
static |
The size of the video image captured by the local camera is 1280 × 720.
|
static |
The size of the video image captured by the local camera is 1920 × 1080.
CAPTURER_OUTPUT_PREFERENCE io.agora.rtc.video.CameraCapturerConfiguration.preference |
The camera capture preference.
preference | The camera capture preference. For details, see CAPTURER_OUTPUT_PREFERENCE . |
CAMERA_DIRECTION io.agora.rtc.video.CameraCapturerConfiguration.cameraDirection |
The camera direction.
cameraDirection | The camera direction:
|
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
.