google/cameraview

camera preview showing black ,Please look my code below to solve.

dbq4130 opened this issue · 2 comments

CameraView:
mCallbacks = new CallbackBridge(); // if (Build.VERSION.SDK_INT < 21) { mImpl = new Camera1(mCallbacks, preview); // } else if (Build.VERSION.SDK_INT < 23) { // mImpl = new Camera2(mCallbacks, preview, context); // } else { // mImpl = new Camera2Api23(mCallbacks, preview, context); // }

thanks.

My blog:https://blog.csdn.net/u011586504

You just use Camera1 ????

You just use Camera1 ????

yes,beacause Camera2 not suitable for all mobile phones