Browse Source

优化Camera创建预览流程,使Camera创建使用更加灵活

main v1.3.1
jiangdongguo 7 years ago
parent
commit
21c2c2f45b
  1. 4
      libusbcamera/src/main/java/com/jiangdg/usbcamera/USBCameraManager.java

4
libusbcamera/src/main/java/com/jiangdg/usbcamera/USBCameraManager.java

@ -105,7 +105,9 @@ public class USBCameraManager{
startPreview(cameraView, new AbstractUVCCameraHandler.OnPreViewResultListener() { startPreview(cameraView, new AbstractUVCCameraHandler.OnPreViewResultListener() {
@Override @Override
public void onPreviewResult(boolean isConnected) { public void onPreviewResult(boolean isConnected) {
if(listener != null){
listener.onConnectDev(device,isConnected);
}
} }
}); });
} }

Loading…
Cancel
Save