getInputDevices()
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().
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 aPromise<DailyDeviceInfos>:
The currently selected camera (video input device).
DailyMediaDeviceInfo extends the browser MediaDeviceInfo with an optional facing field ('user' or 'environment').The currently selected microphone (audio input device). See
MediaDeviceInfo for the full shape.The currently selected speaker or audio output device. See
MediaDeviceInfo for the full shape.