muteAudioDevice method

Future<void> muteAudioDevice(
  1. ZegoAudioDeviceType deviceType,
  2. String deviceID,
  3. bool mute
)

Mutes or unmutes the audio device.

Only for Windows / macOS / Linux

  • deviceType Audio device type
  • deviceID ID of a device obtained by getAudioDeviceList
  • mute Whether to mute the audio device; true means to mute the audio device; false means to unmute the audio device.

Implementation

Future<void> muteAudioDevice(
    ZegoAudioDeviceType deviceType, String deviceID, bool mute) async {
  return await ZegoExpressImpl.instance
      .muteAudioDevice(deviceType, deviceID, mute);
}