onUserEnableLocalVideo property

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

Occurs when a specific remote user enables/disables the local video capturing function. The SDK triggers this callback when the remote user resumes or stops capturing the video stream by calling the enableLocalVideo method.

  • connection The connection information. See RtcConnection .
  • remoteUid The user ID of the remote user.
  • enabled Whether the specified remote user enables/disables the local video capturing function:true: Enable. Other users in the channel can see the video of this remote user.false: Disable. Other users in the channel can no longer receive the video stream from this remote user, while this remote user can still receive the video streams from other users.

Implementation

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