setMicrophoneEnabled

suspend fun setMicrophoneEnabled(enabled: Boolean): Boolean

If set to enabled, creates and publishes a microphone audio track if not already done, and unmutes the mic.

If set to disabled, mutes the mic.

This will use capture and publish default options from Room.

Return

true if the change was successful, or false if it failed.

See also