setMicrophoneEnabled method

Future<LocalTrackPublication<LocalTrack>?> setMicrophoneEnabled(
  1. bool enabled,
  2. {AudioCaptureOptions? audioCaptureOptions}
)

Shortcut for publishing a TrackSource.microphone

Implementation

Future<LocalTrackPublication?> setMicrophoneEnabled(bool enabled,
    {AudioCaptureOptions? audioCaptureOptions}) async {
  return setSourceEnabled(TrackSource.microphone, enabled,
      audioCaptureOptions: audioCaptureOptions);
}