public abstract class AVChatCameraCapturer extends java.lang.Object implements AVChatVideoCapturer
create using AVChatVideoCapturerFactory.createCameraPolicyCapturer(boolean)
Constructor and Description |
---|
AVChatCameraCapturer() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getCurrentZoom()
Get the current scale
|
abstract int |
getMaxZoom()
Get the maximum video scale supported by the camera
|
static boolean |
hasMultipleCameras()
Check if the device has multiple cameras
|
abstract int |
setFlash(boolean flash)
Turn on or off the flash
|
abstract void |
setFocusAreas(float x,
float y)
Set focus areas
|
abstract void |
setMeteringAreas(float x,
float y)
Set metering areas
|
abstract void |
setZoom(int zoomValue)
Set zoom
|
abstract int |
switchCamera()
Switch cameras
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asVideoCapturer
public abstract void setZoom(int zoomValue)
zoomValue
- zoom parameterpublic abstract int getCurrentZoom()
public abstract int getMaxZoom()
public abstract int setFlash(boolean flash)
flash
- true:on; false: offpublic abstract int switchCamera()
AVChatStateObserverLite.onDeviceEvent(int, String)
callback is triggered.AVChatDeviceEvent.VIDEO_CAMERA_SWITCH_OK
,
AVChatDeviceEvent.VIDEO_CAMERA_SWITCH_ERROR
public static boolean hasMultipleCameras()
true
Yes. false
Nopublic abstract void setMeteringAreas(float x, float y)
x
- x coordinatey
- y coordinatepublic abstract void setFocusAreas(float x, float y)
x
- x coordinatey
- y coordinate