I am trying to get device Id from user by using WebRTC API navigator.mediaDevices.getUserMedia
. But the function throws an OverconstrainedError
which has constraint
property inside says deviceId
. This means something was wrong with the deviceId
.
However, I don't see any reason for browser to can't get device ID. Actually I haven't experienced this issue before.
Do you have any idea what would be the reason? Would it be because of the camera or is it all about the browser?