Aarbel commented on issue #916:
URL: https://github.com/apache/cordova-android/issues/916#issuecomment-732253739


   @WuglyakBolgoink yes i use the `navigator.mediaDevices.getUserMedia` API. 
It's not perfect, but it makes the job if you parse the medias, and select the 
one with "rear' and "back" in their names to get the device back camera.(in 
more details: navigator.mediaDevices API has an "environment" preference 
setting to select the back camera, but doesn't work well to select the right 
rear camera on all the devices (for example Microsoft Surface Devices), so it's 
necessary to list de media Devices and select the right ones you want.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to