i need to access to smartphone back-camera through NavigatorUsermedia.getUsermedia(). I found some articles that use only front-camera, without choice.
Some ideas? I know that Camera API are not yet supported from no browser.
i need to access to smartphone back-camera through NavigatorUsermedia.getUsermedia(). I found some articles that use only front-camera, without choice.
Some ideas? I know that Camera API are not yet supported from no browser.
In the constraints of getUserMedia()
use this for front camera:
{ audio: true, video: { facingMode: "user" } }
or this for rear camera:
{ audio: true, video: { facingMode: { exact: "environment" } } }
I hope this helps.