userEnableVideo property Null safety

UidWithEnabledCallback? userEnableVideo
read / write

Occurs when a remote user enables/disables the video module.

Deprecated This callback is deprecated and replaced by the RtcEngineEventHandler.remoteVideoStateChanged callback with the following parameters:

Once the video module is disabled, the remote user can only use a voice call. The remote user cannot send or receive any video from other users.

The SDK triggers this callback when the remote user enables or disables the video module by calling the RtcEngine.enableVideo or RtcEngine.disableVideo method.

Note

  • This callback is invalid when the number of users or broadcasters in the channel exceeds 17.

The UidWithEnabledCallback typedef includes the followinh parameters:

  • int uid: User ID of the remote user.
  • bool enabled: Whether the specific remote user enables/disables the video module:
    • true: Enabled. The remote user can enter a video session.
    • false: Disabled. The remote user can only enter a voice session, and cannot send or receive any video stream.

Implementation

@deprecated
UidWithEnabledCallback? userEnableVideo;