Agora Java API Reference for Android
Public Member Functions | List of all members
io.agora.streaming.AgoraCameraCapturer Interface Reference
Inheritance diagram for io.agora.streaming.AgoraCameraCapturer:
io.agora.streaming.internal.CameraCapturerImpl

Public Member Functions

int setCameraSource (@CameraSource int source)
 
int getCameraSource ()
 
boolean isZoomSupported ()
 
int setZoom (float zoomValue)
 
float getMaxZoom ()
 
boolean isFocusSupported ()
 
int setFocus (float x, float y)
 
boolean isAutoFaceFocusSupported ()
 
int setAutoFaceFocus (boolean enable)
 
boolean registerEventHandler (VideoDeviceEventHandler handler)
 
boolean unregisterEventHandler (VideoDeviceEventHandler handler)
 

Member Function Documentation

◆ setCameraSource()

int io.agora.streaming.AgoraCameraCapturer.setCameraSource ( @CameraSource int  source)

Sets the camera source.

Parameters
sourceThe camera source that you want to capture: #CameraSource.
Returns
  • 0: Success.
  • < 0: Failure.

◆ getCameraSource()

int io.agora.streaming.AgoraCameraCapturer.getCameraSource ( )

Gets the camera source.

Returns
The camera source: #CameraSource.

Implemented in io.agora.streaming.internal.CameraCapturerImpl.

◆ isZoomSupported()

boolean io.agora.streaming.AgoraCameraCapturer.isZoomSupported ( )

Determine whether the camera supports zoom

Returns
boolean true: support false: don't

Implemented in io.agora.streaming.internal.CameraCapturerImpl.

◆ setZoom()

int io.agora.streaming.AgoraCameraCapturer.setZoom ( float  zoomValue)

Set camera zoom

Parameters
zoomValuecamera zoom based getMaxZoom
Returns
int ERR_OK is success, others are failed.

Implemented in io.agora.streaming.internal.CameraCapturerImpl.

◆ getMaxZoom()

float io.agora.streaming.AgoraCameraCapturer.getMaxZoom ( )

Get Max camera zoom

Returns
float Max camera zoom

Implemented in io.agora.streaming.internal.CameraCapturerImpl.

◆ isFocusSupported()

boolean io.agora.streaming.AgoraCameraCapturer.isFocusSupported ( )

Determine whether the camera supports focus

Returns
boolean true: support false: don't

Implemented in io.agora.streaming.internal.CameraCapturerImpl.

◆ setFocus()

int io.agora.streaming.AgoraCameraCapturer.setFocus ( float  x,
float  y 
)

set the position of camera's focus

Parameters
xHorizontal coordinate point of camera. from 0.0f to 1.0f
yVertical coordinate point of camera from 0.0f to 1.0f
Returns
int ERR_OK is success, others are failed.

Implemented in io.agora.streaming.internal.CameraCapturerImpl.

◆ isAutoFaceFocusSupported()

boolean io.agora.streaming.AgoraCameraCapturer.isAutoFaceFocusSupported ( )

Determine if camera support auto face focus

Returns
bool true: supported false: not supported

Implemented in io.agora.streaming.internal.CameraCapturerImpl.

◆ setAutoFaceFocus()

int io.agora.streaming.AgoraCameraCapturer.setAutoFaceFocus ( boolean  enable)

set to support auto face focus

Parameters
enabletrue or false
Returns
int ERR_OK is success, others are failed.

Implemented in io.agora.streaming.internal.CameraCapturerImpl.

◆ registerEventHandler()

boolean io.agora.streaming.AgoraCameraCapturer.registerEventHandler ( VideoDeviceEventHandler  handler)

register observer event interface

Parameters
enabletrue or false
Returns
bool true: success false: failed

Implemented in io.agora.streaming.internal.CameraCapturerImpl.

◆ unregisterEventHandler()

boolean io.agora.streaming.AgoraCameraCapturer.unregisterEventHandler ( VideoDeviceEventHandler  handler)

unregister observer event interface

Parameters
enabletrue or false
Returns
bool true: success false: failed

Implemented in io.agora.streaming.internal.CameraCapturerImpl.