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.
connectionConnection information. See RtcConnection.remoteUidID of the remote user whose video state changed.stateRemote video stream state. See RemoteVideoState.reasonReason for the change in the remote video stream state. See RemoteVideoStateReason.elapsedTime 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;