getDevices
getDevices
ConstgetDevices(name?,fullList?):Promise<MediaDeviceInfo[]>— See MediaDeviceInfo for more details.
Enumerates the media input and output devices available on this machine. If name is provided, only the devices of the specified kind are returned. Possible values for name are "camera", "microphone", and "speaker", which respectively correspond to getCameraDevices, getMicrophoneDevices, and getSpeakerDevices.
Parameters
name
Filter for this device category.
fullList
Set to true to retrieve the raw list as returned by the browser, which might include multiple, duplicate deviceIds for the same group.
Returns
Promise<MediaDeviceInfo[]>