onUserEnableVideo property
Callback when a remote user enables/disables the video module.
Disabling the video function means the user can only make voice calls, cannot display or send their own video, and cannot receive or display others' video. This callback is triggered when a remote user calls the enableVideo or disableVideo method to enable or disable the video module.
connectionConnection information. See RtcConnection.remoteUidUser ID indicating which user's video stream it is.enabledtrue : The user has enabled the video function. false : The user has disabled the video function.
Implementation
final void Function(RtcConnection connection, int remoteUid, bool enabled)?
onUserEnableVideo;