CJT2325 / CameraView

仿微信拍照Android控件(轻触拍照,长按摄像)
Apache License 2.0
2.67k stars 581 forks source link

报错,两个界面一个拍照一个拍视频,会报错 #199

Closed kevin321happy closed 5 years ago

kevin321happy commented 6 years ago

java.lang.RuntimeException: getParameters failed (empty parameters) at android.hardware.Camera.native_getParameters(Native Method) at android.hardware.Camera.getParameters(Camera.java:2365) at com.cjt2325.cameralibrary.CameraInterface.doStartPreview(CameraInterface.java:371) at com.cjt2325.cameralibrary.KCameraView.cameraHasOpened(KCameraView.java:247) at com.cjt2325.cameralibrary.CameraInterface.doOpenCamera(CameraInterface.java:304) at com.cjt2325.cameralibrary.KCameraView$5.run(KCameraView.java:275)

kevin321happy commented 6 years ago

使用两个JCameraView对象时会报错

yangjiechina commented 6 years ago

还有这种操作???

aojiaoqiang commented 5 years ago

你这个操作太骚了吧,一个相机硬件只能同时有一个程序调用,另一个程序会被抛异常,你可以一个前置一个后置