mute method
- Participant participant,
- bool isMuted
Stops playing a specific remote participant's audio to the local participant or stops playing the local participant's audio to the conference. The participant
parameter refers to the participant who should be muted. The isMuted
parameter enables and disables audio; true indicates that the SDK should mute the participant, false indicates that the participant should not be muted.
Implementation
Future<bool> mute(Participant participant, bool isMuted) async {
var arguments = {"participant": participant.toJson(), "isMuted": isMuted};
var result = await _methodChannel.invokeMethod<bool>("mute", arguments);
return Future.value(result);
}