cycleMic()

cycleMic()

Compatibility:
Prebuilt
Custom

Switches the local microphone stream to use the next available microphone device. Has no effect if there is only one mirophone.

Returns a Promise that resolves with data about the current input and output devices. (The data is copied from the microphone's MediaDeviceInfo struct.)

This method is a wrapper around updateInputSettings() providing an easy way to switch devices without modifying other constraints. As such, an 'input-settings-updated' event will be emitted if the device switch is successful and getInputSettings() will reflect the new device settings.