setMicrophoneMute method

  1. @override
void setMicrophoneMute(
  1. bool mute
)
inherited

Implementation

@override
void setMicrophoneMute(bool mute) {
  if (localStream == null) {
    log("Can't perform operation [setMicrophoneMute], cause 'localStream' not initialised");
    return;
  }

  final audioTrack = localStream!
      .getAudioTracks()
      .firstWhere((track) => track.kind == 'audio');

  Helper.setMicrophoneMute(mute, audioTrack);
}