I'm working on a project with MVC ASP.Net 4 HTML5 (default browser is google-chrome v29.0.1547.57) I can interact with these tools and take photographs but only with front camera, How I could enable rear camera? the characteristic of the Tablet: Samsung Galaxy Tab 2 I hope you can help me
Check out https://simpl.info/getusermedia/sources/ that shows how you can select sources using
MediaStreamTrack.getSources(gotSources);
You can then select the source and pass it in as optional into getUserMedia
var constraints = {
audio: {
optional: [{sourceId: audioSource}]
},
video: {
optional: [{sourceId: videoSource}]
}
};
navigator.getUserMedia(constraints, successCallback, errorCallback);
It is now fully available in Stable Chrome and mobile (As of v30)