onUserMuteAudio property

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

Occurs when a remote user (in the communication profile) or a host (in the live streaming profile) stops/resumes sending the audio stream. The SDK triggers this callback when the remote user stops or resumes sending the audio stream by calling the muteLocalAudioStream method.This callback does not work properly when the number of users (in the communication profile) or hosts (in the live streaming channel) in a channel exceeds 17.

  • connection The connection information. See RtcConnection .
  • remoteUid The user ID.
  • muted Whether the remote user's audio stream is muted/unmuted:true: User's audio stream is muted.false: User's audio stream is unmuted.

Implementation

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