onUserEnableVideo property

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

Occurs when a remote user enables/disables the video module. Once the video module is disabled, the user can only use a voice call. The user cannot send or receive any video.The SDK triggers this callback when a remote user enables or disables the video module by calling the enableVideo or disableVideo method.

  • connection The connection information. See RtcConnection .
  • remoteUid The user ID of the remote user.
  • enabled true: Enable.false: Disable.

Implementation

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