Meeting Class Properties - Android
getmeetingId()
-
type:
String -
getmeetingId()will returnmeetingId, which is unique id of the meeting where the participant has joined.
getLocalParticipant()
-
type: Participant
-
It will be the instance of Participant class for the local participant(You) who joined the meeting.
getMeetingState()
-
type:
MeetingState -
getMeetingState()will returnMeetingState, which is current connection state of the meeting.
Example
- Kotlin
- Java
meeting!!.getMeetingState()
meeting.getMeetingState();
getParticipants()
-
type:
Mapof Participant -
Map<String, Participant>- Map<
participantId, Participant>
- Map<
-
It will contain all joined participants in the meeting except the
localParticipant. -
This will be the
Mapwhat will container all participants attached with the key as id of that participant.
- Kotlin
- Java
val remoteParticipantId = "ajf897"
val participant = meeting!!.participants[remoteParticipantId]
String remoteParticipantId = "ajf897";
Participant participant = meeting.getParticipants().get(remoteParticipantId);
pubSub
Learn more about PubSub, here
LeaveReason Enum
The LeaveReason enum provides detailed context for why a meeting or participant departure event was triggered. The following table lists all possible values:
| Code | Reason Constant | Description |
|---|---|---|
| 1001 | WEBSOCKET_DISCONNECTED | Socket disconnected. |
| 1002 | REMOVE_PEER | Participant was removed from the meeting. |
| 1003 | REMOVE_PEER_VIEWER_MODE_CHANGED | Participant Removed because viewer mode was changed. |
| 1004 | REMOVE_PEER_MEDIA_RELAY_STOP | Participant Removed because media relay was stopped. |
| 1005 | SWITCH_ROOM | Participant switched to a different room. |
| 1006 | ROOM_CLOSE | The meeting has been closed. |
| 1007 | UNKNOWN | Participant disconnected due to an unknown reason. |
| 1008 | REMOVE_ALL | Remove All from the meeting. |
| 1009 | MEETING_END_API | Meeting Ended. |
| 1010 | REMOVE_PEER_API | Participant removed from the meeting. |
| 1101 | MANUAL_LEAVE_CALLED | Participant manually called the leave() method to exit the meeting. |
| 1102 | WEBSOCKET_CONNECTION_ATTEMPTS_EXHAUSTED | Meeting left after multiple failed websocket connection attempts. |
| 1103 | JOIN_ROOM_FAILED | Meeting left due to an error while joining the room. |
| 1104 | SWITCH_ROOM_FAILED | Meeting left due to an error while switching rooms. |
Got a Question? Ask us on discord

