> AndroidUSBCamera is developed based on the saki4510t/UVCCamera, the project of USB Camera (UVC equipment) and the use of video data acquisition are highly packaged, and it can help developers using USB Camera devices to connect, preview and video data collection by a few simple API. The main functions include: USB Camera real-time preview; local recording MP4 format video; PNG format photo capture; real-time access to encoded audio and video data stream.
## 如何使用AndroidUSBCamera项目
## 如何使用AndroidUSBCamera项目
### 1.添加依赖到本地工程
### 1.添加依赖到本地工程
@ -78,7 +79,7 @@ mUSBManager.init(this, mUVCCameraView, new USBCameraManager.OnMyDevConnectListen
```
```
### 3. 注册USB设备广播事件监听器,开始Camera预览
### 3. 注册USB设备广播事件监听器,开始Camera预览
Register the USB device broadcast event listener and start the Camera Preview
Register the USB device broadcast event listener and start the Camera Preview
```
```
// 注册USB事件广播监听器
// 注册USB事件广播监听器
if(mUSBManager != null){
if(mUSBManager != null){
@ -91,7 +92,7 @@ if(mUSBManager != null){
```
```
### 4. 注销USB设备广播事件监听器,停止Camera预览
### 4. 注销USB设备广播事件监听器,停止Camera预览
Unregister the USB device broadcast event listener and stop the Camera Preview
Unregister the USB device broadcast event listener and stop the Camera Preview