public class Room
extends java.lang.Object
RemoteParticipant
is distributed equally to all other Participants.
A subset of Android devices provide an OpenSLES implementation. Although more efficient,
the use of OpenSLES occasionally results in echo. As a result, the Video SDK disables OpenSLES by
default unless explicitly enabled. To enable OpenSLES, execute the following before invoking
Video#connect(Context, ConnectOptions, Listener)
tvi.webrtc.voiceengine.WebRtcAudioManager.setBlacklistDeviceForOpenSLESUsage(false)
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.
|
java.lang.String |
getMediaRegion()
Returns the region where media is processed.
|
java.lang.String |
getName()
Returns the name of the current room.
|
java.util.List<RemoteParticipant> |
getRemoteParticipants()
Returns all currently connected participants.
|
java.lang.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.
|
@NonNull public java.lang.String getName()
@NonNull public java.lang.String getSid()
@Nullable public java.lang.String getMediaRegion()
Room
reaches Room.State.CONNECTED
. This method returns null
under the
following conditions:
Room
has not reached the Room.State.CONNECTED
state.
@NonNull public Room.State getState()
@Nullable 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()
@NonNull public java.util.List<RemoteParticipant> getRemoteParticipants()
@Nullable public LocalParticipant getLocalParticipant()
Room.State.CONNECTED
then this method will return null.public void getStats(@NonNull 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()
6.0.0