Skip to main content
Microphone capture is shared by all channels, so input device events are Engine-global events. Register them with RTCEngine.setRtcMicDeviceEvent(...); pass null to unbind. If you only care about some events, extend RTCMicDeviceSimpleEvent.

onMicDeviceListChanged(devices)

The microphone input devices available on the system changed, for example when a wired headset, Bluetooth, or USB microphone is plugged in or removed. The parameter is the full device list after the change.

onMicDeviceInvalid(deviceId, reason)

The input device currently capturing became invalid. The SDK tries to fall back to the system default input and rebuild capture; deviceId is the device handle for this connection, and reason is why it became invalid. For input device fields, see Types; for querying and switching devices, see LocalMicTrack.