Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

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

Open
dbq4130 opened this issue Nov 2, 2018 · 2 comments
Open

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

dbq4130 opened this issue Nov 2, 2018 · 2 comments

Comments

@dbq4130
Copy link

dbq4130 commented Nov 2, 2018

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

@dbq4130 dbq4130 changed the title Preview the second entry show Black screen,Please look my code below to solve. camera preview showing black ,Please look my code below to solve. Nov 2, 2018
@Blowing
Copy link

Blowing commented Nov 9, 2018

You just use Camera1 ????

@dbq4130
Copy link
Author

dbq4130 commented Nov 12, 2018

You just use Camera1 ????

yes,beacause Camera2 not suitable for all mobile phones

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants