Browse Source

Update README.md

main
蒋东国 7 years ago
committed by GitHub
parent
commit
6459cb2db1
  1. 4
      README.md

4
README.md

@ -24,7 +24,7 @@ Step 2. Add the dependency
``` ```
dependencies { dependencies {
compile 'com.github.jiangdongguo:AndroidUSBCamera:v1.0.3' compile 'com.github.jiangdongguo:AndroidUSBCamera:v1.1.0'
} }
``` ```
@ -128,7 +128,7 @@ if( !mUSBManager.isRecording()){
mUSBManager.startRecording(videoPath, new AbstractUVCCameraHandler.OnEncodeResultListener() { mUSBManager.startRecording(videoPath, new AbstractUVCCameraHandler.OnEncodeResultListener() {
@Override @Override
public void onEncodeResult(byte[] data, int offset, int length, long timestamp, int type) { public void onEncodeResult(byte[] data, int offset, int length, long timestamp, int type) {
// type=0为视频流,type=1为音频流              // type=0为音频流,type=1为视频流
}); });
} }
// 停止录制 // 停止录制

Loading…
Cancel
Save