google / cameraview

[DEPRECATED] Easily integrate Camera features into your Android app
Apache License 2.0
4.74k stars 1.03k forks source link

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

Open dbq4130 opened 5 years ago

dbq4130 commented 5 years ago

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

Blowing commented 5 years ago

You just use Camera1 ????

dbq4130 commented 5 years ago

You just use Camera1 ????

yes,beacause Camera2 not suitable for all mobile phones