How to detect if the user has given access to camera and mic independently

Hi,

I would like to be able to allow someone into a meeting although they have not granted access to the camera (but have granted access to the mic). I am currently using the accessDenied event on the publisher, but the even data does not include details on what device was denied and as a result I am having to require them to allow access to both camera and mic in order to participate in our meetings.

Any thoughts on how I could do this ? I am assuming that the openvidu-browser lib is based off navigator.getUserMedia apis. Is there any thing in the openvidu-browser lib that I am missing or should I go off of the navigator apis ? Any code snippets/pointers to examples would be appreciated.

Thanks