muteAudio method

Future<void> muteAudio()

Mutes audio for the local user.

Implementation

Future<void> muteAudio() async {
  try {
    await CometChatCallsPluginPlatform.instance.nativeMuteAudio();
    _isAudioMuted = true;
  } catch (e) {
    throw CometChatCallsException(
      ErrorCodeConstants.errorMuteAudio,
      'Failed to mute audio',
      e.toString(),
    );
  }
}