muteAllAudio2Server method

void muteAllAudio2Server()

Implementation

void muteAllAudio2Server() {
  lifecycleExecute(rtcController.muteAllParticipantsAudio(allowSelfAudioOn))
      .then((result) {
    if (!mounted || result == null) return;
    if (result.isSuccess()) {
      ToastUtils.showToast(context, Strings.muteAllAudioSuccess);
    } else {
      ToastUtils.showToast(context, result.msg ?? Strings.muteAllAudioFail);
    }
  });
}