muteCam method

Future<void> muteCam(
  1. bool mute
)

Mute camera for this call

Implementation

Future<void> muteCam(bool mute) async{
  _logs?.print('Muting $mute camera of call $myCallId');

  try {
    await SiprixVoipSdk().muteCam(myCallId, mute);
    _isCamMuted = mute;
    notifyListeners();
  } on PlatformException catch (err) {
    _logs?.print('Can\'t mute camera of call. Err: ${err.code} ${err.message}');
    return Future.error((err.message==null) ? err.code : err.message!);
  }
}