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 32.
connectionThe connection information. See RtcConnection.remoteUidThe ID of the remote user whose video state changes.stateThe state of the remote video. See RemoteVideoState.reasonThe reason for the remote video state change. See RemoteVideoStateReason.elapsedTime elapsed (ms) from the local user calling the joinChannel method until the SDK triggers this callback.
Implementation
final void Function(
RtcConnection connection,
int remoteUid,
RemoteVideoState state,
RemoteVideoStateReason reason,
int elapsed)? onRemoteVideoStateChanged;