Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for camera availability before switching #203

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

izzyaf
Copy link
Contributor

@izzyaf izzyaf commented Jun 1, 2021

With devices having only 1 camera, pressing "Switch camera" icon will crash the app with the following exception:

Could not find requested camera.

This make sure the desired camera is available before the switch.

I didn't make the changes for iOS, because all devices running iOS have both front & back camera.

@izzyaf
Copy link
Contributor Author

izzyaf commented Nov 29, 2021

@AmolGangadhare any feedback?

@ihsansariyerlioglu
Copy link

@AmolGangadhare Can you give feedback about this merge? I think this should already be in the codebase

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

Successfully merging this pull request may close these issues.

3 participants