muteAudioTrack method

void muteAudioTrack(
  1. MediaStreamTrack track,
  2. bool isSilent
)

Implementation

void muteAudioTrack(MediaStreamTrack track, bool isSilent) {
  print('muteAudioTrack track = $track, isSilent = $isSilent');
  if (isSilent == false && track.enabled == true) {
    // do nothing
  } else {
    track.enabled = !isSilent;
  }
}