unmuteMic

fun unmuteMic()

This method can be used to unmute the local participant's microphone.

Events:

  • onStreamEnabled — emitted on all participants when the audio stream is enabled

Code Example:


meeting.unmuteMic()

fun unmuteMic(customTrack: CustomStreamTrack)

This method can be used to unmute the local participant's microphone using a custom audio track.

Events:

  • onStreamEnabled — emitted on all participants when the audio stream is enabled

Requires a joined meeting. Called before join completes (error code 3001) or while the meeting is reconnecting (error code 3014), the call emits onError locally and disposes customTrack, so it cannot be reused afterwards.

Code Example:


val audioTrack = VideoSDK.createAudioTrack("speech_standard", context)
meeting.unmuteMic(audioTrack)

Parameters

customTrack

the CustomStreamTrack to use as the audio source