onRemoteVideoStateChanged property

(void Function(RtcConnection connection, int remoteUid, RemoteVideoState state, RemoteVideoStateReason reason, int elapsed)?) onRemoteVideoStateChanged
final

Occurs when the remote video stream state changes. This callback does not work properly when the number of users (in the communication profile) or hosts (in the live streaming channel) in a channel exceeds 17.

  • connection The connection information. See RtcConnection .
  • remoteUid The ID of the remote user whose video state changes.
  • state The state of the remote video, see RemoteVideoState .
  • reason The reason for the remote video state change, see RemoteVideoStateReason .
  • elapsed Time elapsed (ms) from the local user calling the joinChannel 2/2 method until the SDK triggers this callback.

Implementation

final void Function(
    RtcConnection connection,
    int remoteUid,
    RemoteVideoState state,
    RemoteVideoStateReason reason,
    int elapsed)? onRemoteVideoStateChanged;