0

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?

2 Answers 2

2

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

0

Try something like this

First get rtcEngine object then try to mute it

var rtcEngine: AgoraRtcEngineKit!
rtcEngine.muteLocalAudioStream(true)
3
  • Actually I have the exact same code, but it does not work. Orange indicator is still on after executing these lines. Oct 22, 2021 at 8:18
  • adjustPlaybackSignalVolume Set this to 0 Then try again Oct 22, 2021 at 9:05
  • It did not work Oct 24, 2021 at 9:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.