Agora-Flutter-SDK icon indicating copy to clipboard operation
Agora-Flutter-SDK copied to clipboard

Mute and unmute are not reflected in other users

Open vedartm opened this issue 4 years ago • 5 comments

Describe the bug To find who is muted and who is unmuted, I am using remoteAudioStateChanged but it is not reliable at all. When someone mutes or unmutes I am only getting reason as AudioRemoteStateReason.NetworkCongestion or AudioRemoteStateReason.NetworkRecovery or AudioRemoteStateReason.Internal Instead of AudioRemoteStateReason.RemoteMuted or AudioRemoteStateReason.RemoteUnmuted How do I fix this?

To Reproduce Steps to reproduce the behavior:

  1. Start an audio channel.
  2. Ask more than 2 people to join
  3. Try muting and unmuting
  4. Check if it is reflected in other users

Expected behavior It is supposed to send AudioRemoteStateReason.RemoteMuted or AudioRemoteStateReason.RemoteUnmuted when mute or unmute happens accordingly.

vedartm avatar Apr 01 '21 07:04 vedartm

After my test, the event can be triggered normally Could you please provide a example?

RoJoHub avatar Apr 09 '21 05:04 RoJoHub

Try this one,

audioSubscribeStateChanged: (channel,uid,oldState,newState,elapse){ if(newState == Rtc.StreamSubscribeState.Subscribed){ //Un mute } else if(newState == Rtc.StreamSubscribeState.NoSubscribed){ //mute } }

kameshkarthi avatar Apr 11 '21 05:04 kameshkarthi

Sorry Can you provide an example for verification? Because after my test, I found that this problem did not occur. I will close this issue

RoJoHub avatar Apr 11 '21 10:04 RoJoHub

@RoJoHub How do I demonstrate the issue?

vedartm avatar Apr 12 '21 14:04 vedartm

Facing the same issue with group video call, eg:- [ A ]

engine.muteRemoteAudioStream(B, true);
remoteAudioStateChanged: (-,-,reason,-) {  print("Reason: $reason")  }

[ B ]

remoteAudioStateChanged: (-,-,reason,-) {  print("Reason: $reason")  }

With this code, I'm expecting, when user A mute the user B then user B should notify with reason Muted, but not getting the expected result:

When A perform mute action for B: Nothing print on B, instead A receives reason LocalMuted and RemoteMuted.

What I'm doing wrong? Or Is there any other way to achieve the same?

devsideal avatar Oct 23 '21 11:10 devsideal

If you still face issues, please try upgrading to the new version to see if it works for you.

littleGnAl avatar Nov 14 '23 09:11 littleGnAl

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

github-actions[bot] avatar Nov 28 '23 11:11 github-actions[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.

github-actions[bot] avatar Dec 05 '23 12:12 github-actions[bot]