Agora Java API Reference for Android
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
io.agora.rtc.video.VideoCapture Class Referenceabstract
Inheritance diagram for io.agora.rtc.video.VideoCapture:
io.agora.rtc.video.VideoCaptureCamera io.agora.rtc.video.VideoCaptureCamera2

Public Member Functions

abstract int allocate ()
 
abstract int setCaptureFormat (int format)
 
abstract int startCapture (int width, int height, int frameRate)
 
abstract int stopCapture ()
 
abstract boolean isTorchSupported ()
 
abstract boolean isFocusSupported ()
 
abstract boolean isZoomSupported ()
 
abstract boolean isAutoFaceFocusSupported ()
 
abstract int setZoom (float zoomValue)
 
abstract float getMaxZoom ()
 
abstract int setTorchMode (boolean isTorchOn)
 
abstract int setFocus (float x, float y, boolean inPreview)
 
abstract int setAutoFaceFocus (boolean enable)
 
abstract boolean isExposureSupported ()
 
abstract int setExposure (float x, float y, boolean inPreview)
 
abstract int UnRegisterNativeHandle ()
 
abstract void deallocate ()
 
native void ProvideCameraFrame (byte[] data, int length, long nativeVideoCaptureDeviceAndroid)
 
native void ProvideCameraTexture (byte[] data, int textureID, long nativeVideoCaptureDeviceAndroid)
 
native boolean isAutoFaceFocusEnabled (long nativeVideoCaptureDeviceAndroid)
 
native void NotifyCameraFocusAreaChanged (float x, float y, float width, float height, long nativeVideoCaptureDeviceAndroid)
 
native void NotifyCameraExposureAreaChanged (float x, float y, float width, float height, long nativeVideoCaptureDeviceAndroid)
 
native void onCameraError (long nativeVideoCaptureDeviceAndroid, String message)
 

Static Public Member Functions

static String fetchCapability (int id, Context appContext, String captureName)
 
static void cacheCapability (int id, Context appContext, String cap, String captureName)
 
static int translateToEngineFormat (int fmt)
 
static int translateToAndroidFormat (int fmt)
 
static boolean isEmulator ()
 

Protected Attributes

int mCameraNativeOrientation
 
final Context mContext
 
final int mId
 
long mNativeVideoCaptureDeviceAndroid
 

Detailed Description

Video capture device base class, define a set of methods that native code need to use to configure, start capture, and to be reached by callbacks and provides some neccessary data type(s) with accessors.