Room Class Properties
id
type:
String
Unique id of the room where the participant has joined.
activeSpeakerId
type:
String?
It will be the
id
of the participant who is actively speaking in the room. If no participant is speaking, at that time value ofactiveSpeakerId
will benull
.
activePresenterId
type:
String?
It will be the
id
of the participant who startedPresenting
/Screen sharing
in the room. If no participant is sharing the screen, at that time value ofactivePresenterId
will benull
.
camEnabled
- type:
bool
- It indicates if camera device is enabled or not.
selectedCamId
- type:
String?
- It will be the
id
of camera device, which is currently selected. If camera device is disabled, at that time, value ofselectedCamId
will benull
.
micEnabled
- type:
bool
- It indicates if microphone device is enabled or not.
selectedMicId
- type:
String?
- It will be the
id
of microphone, which is currently selected. If no microphone is selected, at that time, value ofselectedMicId
will benull
.
localParticipant
type: Participant
It will be the instance of Participant class for the local participant(You) who joined the room.
participants
type:
Map
ofString
and ParticipantMap<String, Participant>
- Map<
participantId
, Participant>
- Map<
It will contain all joined participants in the room except the
localParticipant
.This will be the
Map
what will container all participants attached with the key as id of that participant.
String remoteParticipantId = "ajf897";
Participant? remoteParticipant = room.participants[remoteParticipantId];
pubSub
Learn more about PubSub
, here