isAudioDeviceMuted method

Future<bool> isAudioDeviceMuted(
  1. ZegoAudioDeviceType deviceType,
  2. String deviceID
)

Check if the audio device is muted.

Only for Windows / macOS / Linux

  • deviceType Audio device type
  • deviceID ID of a device obtained by getAudioDeviceList
  • Returns Whether the audio device is muted; true means the audio device is muted; false means the audio device is not muted.

Implementation

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