onUserMuteAudio property

void Function(RtcConnection connection, int remoteUid, bool enabled)? onUserMuteAudio
final

Occurs when a remote user (in communication) or host (in live streaming) stops or resumes sending audio stream.

This callback is triggered when a remote user calls the muteLocalAudioStream method to disable or enable audio sending. When the number of users (in communication) or hosts (in live streaming) in the channel exceeds 32, this callback may be inaccurate.

  • connection Connection information. See RtcConnection.
  • remoteUid User ID.
  • muted Whether the user is muted: true : The user has muted the audio. false : The user has unmuted the audio.

Implementation

final void Function(RtcConnection connection, int remoteUid, bool muted)?
    onUserMuteAudio;