Background
The machine I am trying to implement this on contains multiple cameras, I want to select the camera in the code. (all machines have the same hardware)
Issue
I am trying to implement a custom function before requesting video access where I manually set which device that should be used to prevent selection of wrong camera, but when I use
await navigator.mediaDevices.enumerateDevices()
I get empty labels for available video camera devices.