onRemoteVideoStateChanged property
FutureOr<void> Function(String streamId, StreamInfo streamInfo, RemoteVideoState state, RemoteVideoStateChangeReason videoStateReason)?
onRemoteVideoStateChanged
getter/setter pair
@detail callback @author shenpengliang @brief When the state of a remote video stream changes, users in the room who subscribe to this stream receive the event. @param streamId Remote stream ID @param streamInfo Remote Stream Information. See StreamInfo{@link #StreamInfo} @param videoState Remote video stream status. See RemoteVideoState{@link #RemoteVideoState} @param videoStateReason Remote video stream status change reason. See RemoteVideoStateChangeReason{@link #RemoteVideoStateChangeReason} @note The callback works for video stream captured by the camera, not for screen stream.
Implementation
FutureOr<void> Function(
String streamId,
StreamInfo streamInfo,
RemoteVideoState state,
RemoteVideoStateChangeReason videoStateReason)? onRemoteVideoStateChanged;