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

It's always the camera with the wide angle that opens with android device #365

Open
armin-shareid opened this issue Jan 4, 2023 · 1 comment

Comments

@armin-shareid
Copy link

When I use React-Webcam on Chrome with an Android device that has multiple rear-facing cameras, such as Samsung Galaxy S10, it's always the camera with the wide angle that opens when I specify the "facingMode: environment".

Is it possible to ensure that it is always the basic rear camera that opens regardless of the device used?

@schonee
Copy link

schonee commented Feb 20, 2023

You need to also specify the facingMode on the getUserMedia API.
const constraints = { video: { facingMode: { ideal: "environment", }, },

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

No branches or pull requests

2 participants