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

**URL:** <https://openvidu.discourse.group/t/how-to-detect-if-the-user-has-given-access-to-camera-and-mic-independently/3313>\
**Category:** How to implement?\
**Tags:** v2\
**Created:** [August 19, 2021, 4:47pm UTC](https://openvidu.discourse.group/t/how-to-detect-if-the-user-has-given-access-to-camera-and-mic-independently/3313 "2021-08-19T16:47:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jai-zync](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@jai-zync](https://openvidu.discourse.group/u/jai-zync)\
**Post date:** [August 19, 2021, 4:47pm UTC](https://openvidu.discourse.group/t/how-to-detect-if-the-user-has-given-access-to-camera-and-mic-independently/3313/1 "2021-08-19T16:47:44Z")

</div>

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
