LeaveReason

Why a participant left a room, delivered by RoomEventListener.onRoomLeft for the local participant and RoomEventListener.onParticipantLeft for everyone else.

1001-1011 come from the server (1009 and 1010 when the REST API ended the room or removed the participant), 1101+ from the SDK itself. When the server sends no reason, onRoomLeft reports MANUAL_LEAVE_CALLED and onParticipantLeft reports UNKNOWN.

Entries

Link copied to clipboard

The signalling socket dropped and the session could not be resumed.

Link copied to clipboard

The participant was removed from the room by another participant.

Link copied to clipboard

The participant was removed because the viewer mode was changed.

Link copied to clipboard

The participant was removed because the media relay was stopped.

Link copied to clipboard

The participant switched to a different room.

Link copied to clipboard

The room was closed by the host or server.

Link copied to clipboard

The server named no reason. Also what onParticipantLeft reports when none was sent.

Link copied to clipboard

All participants were removed from the room.

Link copied to clipboard

The room was ended via the REST API.

Link copied to clipboard

The participant was removed via the REST API.

Link copied to clipboard

The same participant ID joined from another device, so the server closed this one.

Link copied to clipboard

The app called Room.leave. Also the fallback when the server ends the session without naming a reason.

Link copied to clipboard

Reconnection gave up after every retry failed. The app has to join again itself.

Link copied to clipboard

The room was left due to a failure while joining the room.

Link copied to clipboard

The room was left due to a failure while switching rooms.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val code: Int

the numeric reason, stable across the VideoSDK platforms.

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

the server's default wording for that reason.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.