toggleAudio()
toggleAudio(newState?: boolean)
Last updated
toggleAudio(newState?: boolean)
Last updated
Toggles user's microphone state.
If the microphone is currently enabled, then it will be disabled. And vice-versa -> if the microphone is currently disabled, then it will be enabled. There is also an optional param to set a concrete target microphone state, but you may use and to achieve similar functionality.
Sample use case: Have a custom toolbar in your integration and want user to control microphone from it.