public abstract class AVChatCameraCapturer extends java.lang.Object implements AVChatVideoCapturer
通过AVChatVideoCapturerFactory.createCameraPolicyCapturer(boolean) 创建
| 构造器和说明 |
|---|
AVChatCameraCapturer() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract int |
getCurrentZoom()
获取当前缩放比例
|
abstract int |
getMaxZoom()
获取摄像头支持的最大视频缩放比例
|
static boolean |
hasMultipleCameras()
是否拥有多个摄像头.
|
abstract int |
setFlash(boolean flash)
开启或关闭闪光灯
|
abstract void |
setFocusAreas(float x,
float y)
设置对焦区域
|
abstract void |
setMeteringAreas(float x,
float y)
设置测光区域
|
abstract void |
setZoom(int zoomValue)
设置缩放
|
abstract int |
switchCamera()
切换摄像头
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasVideoCapturerpublic abstract void setZoom(int zoomValue)
zoomValue - 缩放参数public abstract int getCurrentZoom()
public abstract int getMaxZoom()
public abstract int setFlash(boolean flash)
flash - true:开启 false:关闭public abstract int switchCamera()
AVChatStateObserverLite.onDeviceEvent(int, String)AVChatDeviceEvent.VIDEO_CAMERA_SWITCH_OK,
AVChatDeviceEvent.VIDEO_CAMERA_SWITCH_ERRORpublic static boolean hasMultipleCameras()
true 拥有多个摄像头. false 不具有多个摄像头.public abstract void setMeteringAreas(float x,
float y)
x - 测光区域x坐标y - 测光区域y坐标public abstract void setFocusAreas(float x,
float y)
x - 对焦区域x坐标y - 对焦区域y坐标