I'm trying to mute speaker using muteLocalAudioStream(true)
in AgoraRtcKit
. After calling this method orange indicator is still on a device.
How can I mute user?
I found the solution to my question. In order to stop/resume publishing the local audio stream (mute/unmute) we need to call AgoraRtcEngineKit.enableLocalAudio(isEnabled)
For more details visit official Agora documentation
Try something like this
First get rtcEngine object then try to mute it
var rtcEngine: AgoraRtcEngineKit!
rtcEngine.muteLocalAudioStream(true)