Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Know if remote users mic is on r off #75

Open
muhamadjawad opened this issue Nov 10, 2021 · 9 comments
Open

How to Know if remote users mic is on r off #75

muhamadjawad opened this issue Nov 10, 2021 · 9 comments

Comments

@muhamadjawad
Copy link

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.

@LichKing-2234
Copy link
Contributor

LichKing-2234 commented Nov 10, 2021

pls listen the RemoteAudioStateChanged event.

@muhamadjawad
Copy link
Author

Can u please explain using a example code. That would help me

@LichKing-2234
Copy link
Contributor

LichKing-2234 commented Nov 10, 2021

@muhamadjawad
Copy link
Author

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

@LichKing-2234
Copy link
Contributor

LichKing-2234 commented Nov 11, 2021

The best way is to store the state on your server.

@muhamadjawad
Copy link
Author

Thanks but isn't any other solution than server as agora must be having this function.

@LichKing-2234
Copy link
Contributor

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

@muhamadjawad
Copy link
Author

Thanks i have used UserMuteAudio event and that gave me boolean value of who is muted and who is not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants