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

Mute audio on conference video call [iOS only] not working #360

Open
radyhaggag opened this issue May 1, 2024 · 6 comments
Open

Mute audio on conference video call [iOS only] not working #360

radyhaggag opened this issue May 1, 2024 · 6 comments

Comments

@radyhaggag
Copy link

Specify the sample to which the issue belongs (use [x]):
[] Conference Calls sample

Platform (use [x])
[] iOS

Describe the bug:
When mute the audio on the video call [Conference] the audio still working and the other participants can listen the audio without any problems.

Steps to Reproduce:

  1. Join to conference video call
  2. Try to mute the mic on iOS

Actual result:
Nothing happen the other participants listen the user

Expected behavior:
Mic should be muted and no one can listen the user

@TatankaConCube
Copy link
Contributor

I just built the app from the master branch and the described issue is absent. Could you please add more details and steps for reproducing? what device do you use? Can it be the echo or sound from other devices? Have you tried to mute all other devices and then reproduce the issue?

@radyhaggag
Copy link
Author

_muteMic() {
setState(() {
_isMicMute = !_isMicMute;
_callSession.setMicrophoneMute(_isMicMute);
_callManager.muteMic(_meetingId, _isMicMute);

  final audioTrack = _callSession.localStream?.getAudioTracks().firstOrNull;

  if (audioTrack != null) {
    Helper.setMicrophoneMute(
      _isMicMute,
      audioTrack,
    );
  }

  notifyParticipantsMediaUpdated();
});

The problem occurred only on iOS and there is one mic, and when user mute the mic its not muted and the other participant still hear him.

I just built the app from the master branch and the described issue is absent. Could you please add more details and steps for reproducing? what device do you use? Can it be the echo or sound from other devices? Have you tried to mute all other devices and then reproduce the issue?

@radyhaggag
Copy link
Author

@TatankaConCube Please, this is urgent bug on our app so if you have any idea tell me.

the above code is for mute the mic.

@TatankaConCube
Copy link
Contributor

I have tested our Conference Calls sample on the iPhone XR and no problems were reproduced. The common method is used for muting microphones https://github.com/ConnectyCube/connectycube-flutter-samples/blob/master/conf_call_sample/lib/src/screens/conversation_call_screen.dart#L602

why do you use Helper?

can there be some loop in your app related to the muting mic from the CallKit and from the app?

@radyhaggag
Copy link
Author

why do you use Helper?

i used it because it wasn't working before it so i added it as a second method for ensure from the mute

can there be some loop in your app related to the muting mic from the CallKit and from the app?

i don't think that because it was working with the same code before and not its not working and also it working on android

@TatankaConCube
Copy link
Contributor

also it working on android

this callback works on iOS only

it was working with the same code before

we haven't update the WebRTC lib in our SDK for a long time and the issue can't be related to our SDK, please check what code you change before getting this issue

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