Getusermedia - Facingmode Not Recognized Despite Adapter.js
I want to get the video stream of my rear camera in an Ionic Application. For this, I use getUserMedia that work correctly for the front camera. When I change the facing mode to 'e
Solution 1:
You're using an outdated non-standard constraints syntax. adapter.js polyfills the spec, so to benefit from it you have to follow the spec. E.g. instead of:
{audio: true, video: {mandatory: {facingMode: 'environment'}}};
use
{audio: true, video: {facingMode: {exact: 'environment'}}};
I already have an answer with a working example of this. It should work with Chrome. Not sure if this will work with ionic or not. Let me know if it doesn't work.
Post a Comment for "Getusermedia - Facingmode Not Recognized Despite Adapter.js"