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

Public Member Functions

 CameraCapturerImpl (long nativeCameraCapturer)
 
synchronized void release ()
 
int setCameraSource (int source)
 
int getCameraSource ()
 
boolean registerEventHandler (VideoDeviceEventHandler handler)
 
boolean unregisterEventHandler (VideoDeviceEventHandler handler)
 
boolean isZoomSupported ()
 
int setZoom (float zoomValue)
 
float getMaxZoom ()
 
boolean isFocusSupported ()
 
int setFocus (float x, float y)
 
boolean isAutoFaceFocusSupported ()
 
int setAutoFaceFocus (boolean enable)
 
- Public Member Functions inherited from io.agora.streaming.AgoraCameraCapturer
int setCameraSource (@CameraSource int source)
 

Detailed Description

Counterpart of native agora_streaming_jni::CameraCapturerAndroid

Member Function Documentation

◆ getCameraSource()

int io.agora.streaming.internal.CameraCapturerImpl.getCameraSource ( )

Gets the camera source.

Returns
The camera source: #CameraSource.

Implements io.agora.streaming.AgoraCameraCapturer.

◆ registerEventHandler()

boolean io.agora.streaming.internal.CameraCapturerImpl.registerEventHandler ( VideoDeviceEventHandler  handler)

register observer event interface

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

Implements io.agora.streaming.AgoraCameraCapturer.

◆ unregisterEventHandler()

boolean io.agora.streaming.internal.CameraCapturerImpl.unregisterEventHandler ( VideoDeviceEventHandler  handler)

unregister observer event interface

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

Implements io.agora.streaming.AgoraCameraCapturer.

◆ isZoomSupported()

boolean io.agora.streaming.internal.CameraCapturerImpl.isZoomSupported ( )

Determine whether the camera supports zoom

Returns
boolean true: support false: don't

Implements io.agora.streaming.AgoraCameraCapturer.

◆ setZoom()

int io.agora.streaming.internal.CameraCapturerImpl.setZoom ( float  zoomValue)

Set camera zoom

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

Implements io.agora.streaming.AgoraCameraCapturer.

◆ getMaxZoom()

float io.agora.streaming.internal.CameraCapturerImpl.getMaxZoom ( )

Get Max camera zoom

Returns
float Max camera zoom

Implements io.agora.streaming.AgoraCameraCapturer.

◆ isFocusSupported()

boolean io.agora.streaming.internal.CameraCapturerImpl.isFocusSupported ( )

Determine whether the camera supports focus

Returns
boolean true: support false: don't

Implements io.agora.streaming.AgoraCameraCapturer.

◆ setFocus()

int io.agora.streaming.internal.CameraCapturerImpl.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.

Implements io.agora.streaming.AgoraCameraCapturer.

◆ isAutoFaceFocusSupported()

boolean io.agora.streaming.internal.CameraCapturerImpl.isAutoFaceFocusSupported ( )

Determine if camera support auto face focus

Returns
bool true: supported false: not supported

Implements io.agora.streaming.AgoraCameraCapturer.

◆ setAutoFaceFocus()

int io.agora.streaming.internal.CameraCapturerImpl.setAutoFaceFocus ( boolean  enable)

set to support auto face focus

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

Implements io.agora.streaming.AgoraCameraCapturer.