onStreamPaused

open fun onStreamPaused(kind: StreamKind?, reason: String)

Called when delivery of one of this participant's streams is suspended — by RTCStream.pause here, or by the server shedding it.

The stream is still published; only delivery to this device stopped. RoomEventListener.onPausedAllStreams covers a room-wide pause instead.

Parameters

kind

which media stopped; null for a kind outside StreamKind (screen-share audio).

reason

the server's wording for the pause; empty if it sent none.