muteAudioDevice method
- ZegoAudioDeviceType deviceType,
- String deviceID,
- bool mute
Mutes or unmutes the audio device.
Only for Windows / macOS / Linux
deviceType
Audio device typedeviceID
ID of a device obtained by getAudioDeviceListmute
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);
}