public class AVChatVideoCapturerFactory
extends java.lang.Object
构造器和说明 |
---|
AVChatVideoCapturerFactory() |
限定符和类型 | 方法和说明 |
---|---|
static AVChatCameraCapturer |
createCamera1Capturer(boolean defaultFrontCamera,
boolean captureToTexture)
创建相机视频捕获器,使用Camera1 API
|
static AVChatCameraCapturer |
createCamera2Capturer(boolean defaultFrontCamera,
boolean captureToTexture)
创建相机视频捕获器,使用Camera2 API
|
static AVChatCameraCapturer |
createCameraCapturer(boolean defaultFrontCamera)
已过时。
|
static AVChatCameraCapturer |
createCameraPolicyCapturer(boolean defaultFrontCamera)
创建默认相机视频捕获器,推荐使用体验最好的相机,自动选择Camera1/Camera2,ByteBuffer/Texture
|
static AVChatFileVideoCapturer |
createFileVideoCapturer(java.lang.String inputFile)
创建文件视频捕获器
|
static AVChatScreenCapturer |
createScreenVideoCapturer(Intent mediaProjectionPermissionResultData,
MediaProjection.Callback mediaProjectionCallback)
创建屏幕视频捕获器
|
@Deprecated public static AVChatCameraCapturer createCameraCapturer(boolean defaultFrontCamera)
defaultFrontCamera
- 是否使用前置public static AVChatCameraCapturer createCameraPolicyCapturer(boolean defaultFrontCamera)
defaultFrontCamera
- 是否使用前置public static AVChatCameraCapturer createCamera1Capturer(boolean defaultFrontCamera, boolean captureToTexture)
defaultFrontCamera
- 是否使用前置captureToTexture
- 是否采集数据到Texturepublic static AVChatCameraCapturer createCamera2Capturer(boolean defaultFrontCamera, boolean captureToTexture)
defaultFrontCamera
- 是否使用前置captureToTexture
- 是否采集数据到Texturepublic static AVChatScreenCapturer createScreenVideoCapturer(Intent mediaProjectionPermissionResultData, MediaProjection.Callback mediaProjectionCallback)
mediaProjectionPermissionResultData
- onActivityResult 返回的intent数据mediaProjectionCallback
- MediaProjection 状态改变的callbackpublic static AVChatFileVideoCapturer createFileVideoCapturer(java.lang.String inputFile) throws java.lang.Exception
inputFile
- 传入的文件地址java.lang.Exception