> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# getInputDevices()

> Returns the camera, microphone, and speaker devices currently selected for the call.

`getInputDevices()`

✓ Prebuilt✓ Custom

Returns a `Promise<DailyDeviceInfos>` describing the camera, microphone, and speaker devices currently in use for the call. Handy for building your device selector UI or for debugging. To get a list of all available devices (not just the active ones), use [`enumerateDevices()`](https://docs.daily.co/reference/daily-js/instance-methods/enumerate-devices).

If a device has not been specified or has not yet been acquired, its field will be an empty object `{}`. The field will also be empty if a custom track has been provided for that input.

## Return value

Returns a `Promise<DailyDeviceInfos>`:

**camera** `DailyMediaDeviceInfo | \{\}`

The currently selected camera (video input device). `DailyMediaDeviceInfo` extends the browser [`MediaDeviceInfo`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo) with an optional `facing` field (`'user'` or `'environment'`).

**mic** `MediaDeviceInfo | \{\}`

The currently selected microphone (audio input device). See [`MediaDeviceInfo`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo) for the full shape.

**speaker** `MediaDeviceInfo | \{\}`

The currently selected speaker or audio output device. See [`MediaDeviceInfo`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo) for the full shape.

## Example

```javascript theme={null}
const { camera, mic, speaker } = await call.getInputDevices();

console.log('Camera:', camera.label || camera.deviceId);
console.log('Mic:', mic.label || mic.deviceId);
console.log('Speaker:', speaker.label || speaker.deviceId);
```

## See also

> [card] Methods
>
> * [enumerateDevices()](https://docs.daily.co/reference/daily-js/instance-methods/enumerate-devices.md)
> * [setInputDevicesAsync()](https://docs.daily.co/reference/daily-js/instance-methods/set-input-devices-async.md)
> * [setOutputDeviceAsync()](https://docs.daily.co/reference/daily-js/instance-methods/set-output-device-async.md)
> * [updateInputSettings()](https://docs.daily.co/reference/daily-js/instance-methods/update-input-settings.md)

> [card] Events
>
> * [available-devices-updated](https://docs.daily.co/reference/daily-js/events/settings-events.md#available-devices-updated)
> * [selected-devices-updated](https://docs.daily.co/reference/daily-js/events/settings-events.md#selected-devices-updated)
> * [camera-error](https://docs.daily.co/reference/daily-js/events/settings-events.md#camera-error)

> [card] Guides
>
> * [Audio and video](https://docs.daily.co/docs/daily-js/guides/audio-video.md)
> * [Device permissions](https://docs.daily.co/docs/daily-js/guides/device-permissions.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.