onMediaRelayStopped

open fun onMediaRelayStopped(roomId: String, reason: String?)

Called in the room that requested the relay when the relay ends. In the destination room the relayed participants leave instead, through onParticipantLeft with LeaveReason.REMOVE_PEER_MEDIA_RELAY_STOP.

Parameters

roomId

the destination room.

reason

the server's wording for why it stopped, or null if it sent none.