MicrophoneDeviceInfo

An audio output route: the earpiece, the loudspeaker, a wired headset or a Bluetooth headset. Microphones are never reported here.

Listed by VideoSDK.getMics; pass its deviceId to Room.changeMic to switch the route.

Parameters

label

the name to show in a picker. Today it is the same string as DeviceInfo.deviceId.

deviceId

one of EARPIECE, SPEAKER_PHONE, WIRED_HEADSET or BLUETOOTH. An instance you built yourself with any other id is accepted but changes no routing.

Constructors

Link copied to clipboard
constructor(label: String, deviceId: String)