public class Room extends Object
Participant
is distributed equally to all other Participants.Modifier and Type | Class and Description |
---|---|
static interface |
Room.Listener
Listener definition of room related events.
|
Modifier and Type | Method and Description |
---|---|
void |
disconnect()
Disconnects from the room.
|
LocalParticipant |
getLocalParticipant()
Returns the current local participant.
|
String |
getName()
Returns the name of the current room.
|
List<Participant> |
getParticipants()
Returns all currently connected participants.
|
String |
getSid()
Returns the SID of the current room.
|
RoomState |
getState()
Returns the current room state.
|
void |
getStats(StatsListener statsListener)
Retrieve stats for all media tracks and notify
StatsListener via calling thread. |
boolean |
isRecording()
Returns whether any media in the Room is being recorded.
|
public String getName()
public String getSid()
public RoomState getState()
public boolean isRecording()
public List<Participant> getParticipants()
public LocalParticipant getLocalParticipant()
RoomState.CONNECTED
then this method will return null.public void getStats(StatsListener statsListener)
StatsListener
via calling thread.
In case where room is in RoomState.DISCONNECTED
state, reports won't be delivered.statsListener
- listener that receives stats reports for all media tracks.public void disconnect()