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.
|
RemoteParticipant |
getDominantSpeaker()
Returns the dominant speaker of 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 RemoteParticipant getDominantSpeaker()
Room
.
To enable this feature, add an invocation of ConnectOptions.Builder.enableDominantSpeaker
with true
when building your ConnectOptions
. This method returns null
when one of the following conditions are
true:
Room
topology is P2P.
ConnectOptions.Builder.enableDominantSpeaker
.
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.4.0