Participant Class Properties - Android
These are Kotlin properties. Read them with property syntax, for example participant.displayName. A getter call such as participant.getDisplayName() does not compile.
id
-
type:
String -
idis the unique ID of the participant who has joined the room. It is also the participant's key inroom.participants. -
For the local participant, the ID is final once
onRoomJoinedfires. Until then, it is theparticipantIdpassed tocreateRoom(), or empty.
displayName
-
type:
String -
displayNameis the name of the participant who has joined the room.
videoQuality
-
type:
VideoQuality -
videoQualityis the video quality this device last requested for the participant withsetQuality():VideoQuality.HIGH,VideoQuality.MEDIUMorVideoQuality.LOW. It starts asVideoQuality.HIGH. -
It is a request, not a measurement. The participant's video can still arrive at a lower quality when bandwidth is short. It does not follow
setScreenShareQuality().
isLocal
-
type:
Boolean -
isLocalistrueif the participant is the local participant,falseotherwise.
streams
-
type:
Map<String, RTCStream> -
streamsholds the participant's current streams, keyed by stream ID. A stream'skindisMediaType.AUDIO,MediaType.VIDEO,MediaType.SHAREorMediaType.SHARE_AUDIO. -
For a remote participant, it holds only the streams this device receives.
-
It is a live view that changes as streams start and stop. Copy it before you iterate over it off the main thread, or follow the stream events of
ParticipantEventListenerinstead.
mode
-
type:
Mode -
modeis the mode of the participant:Mode.SEND_AND_RECV,Mode.RECV_ONLYorMode.SIGNALLING_ONLY. -
It is updated when
onParticipantModeChangedfires for the participant.
pinState
-
type:
ParticipantPinState -
pinStatetells which of the participant's streams are pinned for everyone in the room.pinState.camistruewhile the camera is pinned, andpinState.shareistruewhile the screen share is pinned. Bothfalsemeans not pinned. -
It is updated just before
onPinStateChangedfires for the participant. Until then, both values arefalse.
metaData
-
type:
JSONObject? -
metaDatais the additional information that was passed asmetaDatatocreateRoom(), ornullif none was passed. It does not change during the session.
Got a Question? Ask us on discord

