Skip to main content
Version: 1.x.x

Meeting Class Properties - Android

getmeetingId()

  • type: String

  • getmeetingId() will return meetingId, 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 return MeetingState, which is current connection state of the meeting.

Example

meeting!!.getMeetingState()

getParticipants()

  • type: Map of Participant

  • Map<String, Participant>

  • It will contain all joined participants in the meeting except the localParticipant.

  • This will be the Map what will container all participants attached with the key as id of that participant.

val remoteParticipantId = "ajf897"

val participant = meeting!!.participants[remoteParticipantId]

pubSub

  • type: PubSub
  • It is used to enable Publisher-Subscriber feature in meeting class.

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:

CodeReason ConstantDescription
1001WEBSOCKET_DISCONNECTEDSocket disconnected.
1002REMOVE_PEERParticipant was removed from the meeting.
1003REMOVE_PEER_VIEWER_MODE_CHANGEDParticipant Removed because viewer mode was changed.
1004REMOVE_PEER_MEDIA_RELAY_STOPParticipant Removed because media relay was stopped.
1005SWITCH_ROOMParticipant switched to a different room.
1006ROOM_CLOSEThe meeting has been closed.
1007UNKNOWNParticipant disconnected due to an unknown reason.
1008REMOVE_ALLRemove All from the meeting.
1009MEETING_END_APIMeeting Ended.
1010REMOVE_PEER_APIParticipant removed from the meeting.
1101MANUAL_LEAVE_CALLEDParticipant manually called the leave() method to exit the meeting.
1102WEBSOCKET_CONNECTION_ATTEMPTS_EXHAUSTEDMeeting left after multiple failed websocket connection attempts.
1103JOIN_ROOM_FAILEDMeeting left due to an error while joining the room.
1104SWITCH_ROOM_FAILEDMeeting left due to an error while switching rooms.

Got a Question? Ask us on discord