I'm using getUserMedia() to capture a camera stream on iOS 11's Safari. When I get the list of cameras using the MediaDevices API, the labels are blank. Is there a way to reliably determine which camera is pointed in which direction?
navigator.mediaDevices.enumerateDevices().then(function(devices) {
devices.forEach(function(device) {
if(device.kind === 'videoinput') {
console.log(device);
// Labels for both cameras are blank:
// MediaDeviceInfo { deviceId: "123ABC", groupId: "", kind: "videoinput", label: "" }
}
});
});