onRemoteVideoStateChanged property

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

Callback when the remote video state changes.

This callback may be inaccurate when the number of users (in communication) or hosts (in live broadcast) in the channel exceeds 32.

  • connection Connection information. See RtcConnection.
  • remoteUid ID of the remote user whose video state changed.
  • state Remote video stream state. See RemoteVideoState.
  • reason Reason for the change in the remote video stream state. See RemoteVideoStateReason.
  • elapsed Time elapsed (ms) from the local user calling joinChannel to the occurrence of this event.

Implementation

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