> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # getCameraDevicesWithPermissions > getCameraDevicesWithPermissions function in the WebRTC namespace. ### getCameraDevicesWithPermissions * `Const` **getCameraDevicesWithPermissions**(): `Promise` — See [MediaDeviceInfo](https://developer.mozilla.org/en-US/docs/Web/API/mediadeviceinfo) for more details. > **Warning** > > Deprecated. Use [getCameraDevices](/docs/browser-sdk/v3/js/reference/webrtc/get-camera-devices) for better cross-browser compatibility. After prompting the user for permission, returns an array of camera devices. #### Returns `Promise` #### Example ```javascript await SignalWire.WebRTC.getCameraDevicesWithPermissions(); // [ // { // "deviceId": "Rug5Bk...4TMhY=", // "kind": "videoinput", // "label": "HD FaceTime Camera", // "groupId": "Su/dzw...ccfnY=" // } // ] ``` > getCameraDevicesWithPermissions function in the WebRTC namespace.