NIMSDK-AOS
10.6.0
plugins
avchat
src
com
netease
nimlib
sdk
avchat
video
AVChatCameraCapturer.java
浏览该文件的文档.
1
/*
2
* Copyright (c) 2014-2018 NetEase, Inc.
3
* All right reserved.
4
*/
5
6
package
com.netease.nimlib.sdk.avchat.video;
7
8
import
android.hardware.Camera;
9
10
import
com
.
netease
.
nimlib
.
sdk
.
avchat
.
AVChatStateObserver
;
11
import
com
.
netease
.
nimlib
.
sdk
.
avchat
.
constant
.
AVChatDeviceEvent
;
12
import
com
.
netease
.
nimlib
.
sdk
.
avchat
.
video
.
AVChatVideoCapturer
;
13
import
com
.
netease
.
nimlib
.
sdk
.
avchat
.
video
.
AVChatVideoCapturerFactory
;
14
20
public
abstract
class
AVChatCameraCapturer
implements
AVChatVideoCapturer
{
21
26
public
abstract
void
setZoom
(
int
zoomValue);
27
32
public
abstract
int
getCurrentZoom
();
33
38
public
abstract
int
getMaxZoom
();
39
45
public
abstract
int
setFlash
(
boolean
flash);
46
54
public
abstract
int
switchCamera
();
55
61
public
static
boolean
hasMultipleCameras
(){
62
return
Camera.getNumberOfCameras() > 1;
63
}
64
70
public
abstract
void
setMeteringAreas
(
float
x,
float
y);
71
77
public
abstract
void
setFocusAreas
(
float
x,
float
y);
78
}
com.netease.nimlib.sdk.avchat.video.AVChatVideoCapturer
AVChatVideoCapturer
Definition:
AVChatVideoCapturer.java:14
com.netease.nimlib.sdk.avchat.video.AVChatCameraCapturer.setZoom
abstract void setZoom(int zoomValue)
设置缩放
com.netease.nimlib.sdk.avchat.AVChatStateObserver
Definition:
AVChatStateObserver.java:15
com.netease.nimlib.sdk
Definition:
RequestCallback.java:1
com.netease.nimlib.sdk.avchat.video.AVChatCameraCapturer.setMeteringAreas
abstract void setMeteringAreas(float x, float y)
设置测光区域
com.netease
com
com.netease.nimlib.sdk.avchat.constant
Definition:
AVChatVideoCaptureOrientation.java:6
com.netease.nimlib.sdk.avchat.video.AVChatCameraCapturer.switchCamera
abstract int switchCamera()
切换摄像头
com.netease.nimlib.sdk.avchat.video.AVChatVideoCapturerFactory
创建Capturer具体实现的工厂类
Definition:
AVChatVideoCapturerFactory.java:17
com.netease.nimlib.sdk.avchat.video.AVChatCameraCapturer.setFlash
abstract int setFlash(boolean flash)
开启或关闭闪光灯
com.netease.nimlib.sdk.avchat.video.AVChatCameraCapturer.setFocusAreas
abstract void setFocusAreas(float x, float y)
设置对焦区域
com.netease.nimlib.sdk.avchat.video.AVChatCameraCapturer
提供一些操作相机的接口
Definition:
AVChatCameraCapturer.java:20
com.netease.nimlib.sdk.avchat.video.AVChatCameraCapturer.getCurrentZoom
abstract int getCurrentZoom()
获取当前缩放比例
com.netease.nimlib.sdk.avchat.video.AVChatCameraCapturer.getMaxZoom
abstract int getMaxZoom()
获取摄像头支持的最大视频缩放比例
com.netease.nimlib.sdk.avchat.constant.AVChatDeviceEvent
设备操作事件
Definition:
AVChatDeviceEvent.java:13
com.netease.nimlib.sdk.avchat.video.AVChatCameraCapturer.hasMultipleCameras
static boolean hasMultipleCameras()
是否拥有多个摄像头.
Definition:
AVChatCameraCapturer.java:61
com.netease.nimlib.sdk.avchat.video
Definition:
AVChatExternalVideoCapturer.java:6
com.netease.nimlib.sdk.avchat
com.netease.nimlib
生成于 2024年 十一月 19日 星期二 20:07:50 , 为 NIMSDK-AOS使用
1.8.13