muteAudios method

Future<bool> muteAudios({
  1. required List<String> targetHostIDs,
  2. required bool isMute,
})

Silence the targetHostIDs in PK, local host and audience in the live streaming won't hear the muted host's voice.

If you want to cancel mute, set isMute to false.

Implementation

Future<bool> muteAudios({
  required List<String> targetHostIDs,
  required bool isMute,
}) async {
  return ZegoUIKitPrebuiltLiveStreamingPK.instance.muteUserAudio(
    targetHostIDs: targetHostIDs,
    isMute: isMute,
  );
}