onUserEnableLocalVideo property

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

Callback when a remote user enables/disables local video capture.

Deprecated Deprecated: This callback is deprecated. Use the following enums in the onRemoteVideoStateChanged callback instead: remoteVideoStateStopped (0) and remoteVideoStateReasonRemoteMuted (5). remoteVideoStateDecoding (2) and remoteVideoStateReasonRemoteUnmuted (6). This callback is triggered when a remote user calls the enableLocalVideo method to enable or disable video capture.

  • connection Connection information. See RtcConnection.
  • remoteUid User ID indicating which user's video stream it is.
  • enabled Whether the remote user enables video capture: true : The user has enabled the video function. Other users can receive this user's video stream. false : The user has disabled the video function. This user can still receive other users' video streams, but others cannot receive this user's video stream.

Implementation

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