setAudioMuted method

  1. @override
Future<JitsiMeetingResponse> setAudioMuted(
  1. bool isMuted
)
override

Implementation

@override
Future<JitsiMeetingResponse> setAudioMuted(bool isMuted) async {
  Map<String, dynamic> _options = {
    'isMuted': isMuted,
  };
  return await _methodChannel
      .invokeMethod<String>('setAudioMuted', _options)
      .then((message) {
    return JitsiMeetingResponse(isSuccess: true, message: message);
  }).catchError((error) {
    return JitsiMeetingResponse(
      isSuccess: false,
      message: error.toString(),
      error: error,
    );
  });
}