Activating rear Android camera
Hi I use the code below to activate the camera and scan qr codes!
- n.webkitGetUserMedia({video: true, audio: false}, success, error);
But when I try to force using the rear camera, it fails (it doesn't activate the camera at all):
- n.webkitGetUserMedia({video: {
- mandatory: {
- facingMode: "environment"
- }
- },
- audio: false}, success, error);
How can I force using the rear camera?
Thanks