getMicrophoneDevices

View as Markdown

getMicrophoneDevices

  • Const getMicrophoneDevices(): Promise<MediaDeviceInfo[]> — See MediaDeviceInfo for more details.

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

Returns

Promise<MediaDeviceInfo[]>

Example

1await SignalWire.WebRTC.getMicrophoneDevices();
2// [
3// {
4// "deviceId": "ADciLf...NYgF8=",
5// "kind": "audioinput",
6// "label": "Internal Microphone",
7// "groupId": "rgZgKM...NW1hU="
8// }
9// ]