onStreamMessageError property
(void Function(RtcConnection connection, int remoteUid, int streamId, ErrorCodeType code, int missed, int cached)?)
onStreamMessageError
final
Occurs when the local user does not receive the data stream from the remote user. The SDK triggers this callback when the local user fails to receive the stream message that the remote user sends by calling the sendStreamMessage method.
connection
The connection information. See RtcConnection .remoteUid
The ID of the remote user sending the message.streamId
The stream ID of the received message.code
The error code.missed
The number of lost messages.cached
Number of incoming cached messages when the data stream is interrupted.
Implementation
final void Function(RtcConnection connection, int remoteUid, int streamId,
ErrorCodeType code, int missed, int cached)? onStreamMessageError;