I need to know if there is a way to check access to a microphone or to a webcam for Firefox not using navigator.mediaDevices.getUserMedia . For example, this code navigator.permissions.query({name : 'camera'}) works very well for Chrome, but Firefox doesn't support camera and microphone in permission.query.
The reason why I do not want to use navigator.mediaDevices.getUserMedia is that the permission modal for the camera and microphone will be shown separately if I make it like this navigator.mediaDevices.getUserMedia({video: true}) for webcam and navigator.mediaDevices.getUserMedia({audio: true}) for microphone. Thanks.