Agora-RN-Quickstart
Agora-RN-Quickstart copied to clipboard
How to Know if remote users mic is on r off
Hi ,Thanks for this amazing code. I have implemented video call for multiple users and now i want to show that whether the mics of all users is on or mute. So how can i use it. I found no solution in the documentation.
pls listen the RemoteAudioStateChanged
event.
Can u please explain using a example code. That would help me
https://docs.agora.io/en/Video/API%20Reference/react_native/interfaces/rtcengineevents.html#remoteaudiostatechanged
https://docs.agora.io/en/Video/API%20Reference/react_native/enums/audioremotestate.html
https://docs.agora.io/en/Video/API%20Reference/react_native/enums/audioremotestatereason.html
How can i implement it for individual users. for example I have 3 remote users a , b and c then hove know which of them are mute and which are not
The best way is to store the state on your server.
Thanks but isn't any other solution than server as agora must be having this function.
You can get it from this event, it will give the state of remote broadcaster after you join the channel.
https://docs.agora.io/en/Video/API%20Reference/react_native/interfaces/rtcengineevents.html#remoteaudiostatechanged
Thanks i have used UserMuteAudio
event and that gave me boolean value of who is muted and who is not.