stopMediaRelay

suspend fun stopMediaRelay(destinationRoomId: String)

Tears the whole relay to one room down, every kind at once. RoomEventListener.onMediaRelayStopped confirms it in this room; in the destination the relayed participants leave with REMOVE_PEER_MEDIA_RELAY_STOP.

Parameters

destinationRoomId

the room the relay was feeding.

See also

Throws

code 3073 (ERROR_INVALID_PARAMETER) if destinationRoomId is empty, or code 4079 (STOP_MEDIA_RELAY_FAILED) if the server refuses.