I want to automatically choose the best back (environment facing) camera for my cross-platform web application. I am using navigator.mediaDevices.enumerateDevices() to work both on Android and IOS. I have two issues:
note: I call get navigator.mediaDevices.enumerateDevices() after calling navigator.mediaDevices.getUserMedia() according to this thread.