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

Doesn't pick rear camera on Android Chrome #5

Closed
jerefrer opened this issue Jul 30, 2016 · 6 comments
Closed

Doesn't pick rear camera on Android Chrome #5

jerefrer opened this issue Jul 30, 2016 · 6 comments

Comments

@jerefrer
Copy link
Contributor

jerefrer commented Jul 30, 2016

When going on the demo page with Android Chrome 51.0.2704.81, the front camera gets picked by default. There is no prompt for choosing the camera as there is on latest Android Firefox.
I'm using Android 4.2.2 on a FairPhone 1.

It seems it's possible to select the rear one, as I'm able to do it on https://webrtc.github.io/samples/src/content/devices/input-output/ through the select input.

@JodusNodus
Copy link
Owner

I have edited it so that it forces the facingMode (not just prefer it) if provided otherwise it will let the browser choose (on some browser it shows an alert on some it doesn't like chrome for android). I will publish this update as soon as possible.

@JodusNodus
Copy link
Owner

It also seems that their are inconsistencies with constrains on chrome vs the standard.

@JodusNodus
Copy link
Owner

I have updated the module to 0.2.8. Please test the demo again.

@jerefrer
Copy link
Contributor Author

jerefrer commented Jul 31, 2016

Just tried.

Even though I choose "Back" from the select, the video output keep displaying from the front one.

@jerefrer
Copy link
Contributor Author

After having updated and tried on my own app where I set facingMode to rear, the rear camera gets properly picked up, and then it recognizes the QrCode !

So it seems it's working fine now on Android Chrome !

@JodusNodus
Copy link
Owner

👍 Sorry the demo used the value back for facingMode instead of rear. I have corrected that.

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