I am using navigate.getUserMedia() method to capture video on my mobile and do further processing on it. But as of now it is capturing the video using the front camera. How do i make it to access the rear facing camera??
Below is some sample code which i am using in my application:
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia;
if (navigator.getUserMedia){
navigator.getUserMedia({video: true}, successCallback, errorCallback);
Thanks in advance
This example on simpl.info demonstrates the use of MediaStreamTrack.getSources
to select from multiple video sources.
https://simpl.info/getusermedia/sources/
I can confirm that this works in Chrome 32.