Room Class Properties - Flutter
id
-
type:
String -
Unique id of the room where the participant has joined.
activeSpeakerId
-
type:
String? -
It will be the
idof the participant who is actively speaking in the room. If no participant is speaking, at that time value ofactiveSpeakerIdwill benull.
activePresenterId
-
type:
String? -
It will be the
idof the participant who startedPresenting/Screen sharingin the room. If no participant is sharing the screen, at that time value ofactivePresenterIdwill benull.
camEnabled
- type:
bool - It indicates if camera device is enabled or not.
selectedCamId
- type:
String? - It will be the
idof camera device, which is currently selected.
selectedCam
- type:
VideoDeviceInfo - It will be the object of the camera device, which is currently selected.
micEnabled
- type:
bool - It indicates if microphone device is enabled or not.
selectedMicId
- type:
String? - It will be the
idof microphone, which is currently selected.
selectedMic
- type:
AudioDeviceInfo - It will be the object of the microphone device, which is currently selected.
localParticipant
-
type: Participant
-
It will be the instance of Participant class for the local participant(You) who joined the room.
participants
-
type:
MapofStringand Participant -
Map<String, Participant>- Map<
participantId, Participant>
- Map<
-
It will contain all joined participants in the room except the
localParticipant. -
This will be the
Mapwhat will container all participants attached with the key as id of that participant.
String remoteParticipantId = "ajf897";
Participant? remoteParticipant = room.participants[remoteParticipantId];
pinnedParticipants
-
Map<String, ParticipantPinState>- Map<
participantId,ParticipantPinState>
- Map<
-
It will contain all participants who are pinned in the room.
-
This will be the
Mapwhich will contain all participant who are currently pinned's pin state attached with the key as id of that
hlsState
-
type: String
-
It will return the state of HLS for the room.
liveStreamState
-
type: String
-
It will return the state of Live stream for the room.
recordingState
-
type: String
-
It will return the state of Recording for the room.
hlsDownstreamUrl
-
type: String?
-
It will return the downstream URL for the ongoing HLS of the room if any.
pubSub
Learn more about PubSub, here
selectedSpeakerId
- type:
String? - It will be the
idof the speaker, which is currently selected.
selectedSpeaker
- type:
AudioDeviceInfo - It will be the object of the speaker device, which is currently selected.
Got a Question? Ask us on discord

