onUserMuteVideo property

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

Callback when a remote user stops or resumes publishing the video stream.

When a remote user calls muteLocalVideoStream to stop or resume publishing the video stream, the SDK triggers this callback to report the remote user's stream status to the local user. This callback may be inaccurate when the number of users (in communication) or hosts (in live broadcast) in the channel exceeds 32.

  • connection Connection information. See RtcConnection.
  • remoteUid Remote user ID.
  • muted Whether the remote user stops publishing the video stream: true : Stops publishing the video stream. false : Publishes the video stream.

Implementation

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