public class Room extends Object
RemoteParticipant is distributed equally to all other Participants.| Modifier and Type | Class and Description |
|---|---|
static interface |
Room.Listener
Listener definition of room related events.
|
static class |
Room.State
Represents the current state of a
Room. |
| 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<RemoteParticipant> |
getRemoteParticipants()
Returns all currently connected participants.
|
String |
getSid()
Returns the SID of the current room.
|
Room.State |
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 Room.State getState()
public boolean isRecording()
public List<RemoteParticipant> getRemoteParticipants()
public LocalParticipant getLocalParticipant()
Room.State.CONNECTED then this method will return null.public void getStats(StatsListener statsListener)
StatsListener via calling thread. In
case where room is in Room.State.DISCONNECTED state, reports won't be delivered.statsListener - listener that receives stats reports for all media tracks.public void disconnect()
4.0.1