> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# getCameraDevices

> getCameraDevices function in the WebRTC namespace.

### getCameraDevices

* `Const` **getCameraDevices**(): `Promise<MediaDeviceInfo[]>` — See [MediaDeviceInfo](https://developer.mozilla.org/en-US/docs/Web/API/mediadeviceinfo) for more details.

Returns an array of camera devices that can be accessed on this device (for which we have permissions).

#### Returns

`Promise<MediaDeviceInfo[]>`

#### Example

```javascript
await SignalWire.WebRTC.getCameraDevices();
// [
//   {
//     "deviceId": "Rug5Bk...4TMhY=",
//     "kind": "videoinput",
//     "label": "HD FaceTime Camera",
//     "groupId": "Su/dzw...ccfnY="
//   }
// ]
```