Package com.twilio.video
Interface Participant
-
- All Known Implementing Classes:
LocalParticipant
,RemoteParticipant
public interface Participant
Interface that represents user in aRoom
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Participant.State
The state of the signaling connection for a Participant.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<AudioTrackPublication>
getAudioTracks()
ReturnsAudioTrackPublication
s of participant.java.util.List<DataTrackPublication>
getDataTracks()
ReturnsDataTrackPublication
s of participant.java.lang.String
getIdentity()
Returns participant identity.NetworkQualityLevel
getNetworkQualityLevel()
Returns the participant's Network Quality Level.java.lang.String
getSid()
Returns unique identifier of a participant.Participant.State
getState()
Returns participant state.java.util.List<VideoTrackPublication>
getVideoTracks()
ReturnsVideoTrackPublication
s of participant.
-
-
-
Method Detail
-
getSid
@NonNull java.lang.String getSid()
Returns unique identifier of a participant.
-
getIdentity
@NonNull java.lang.String getIdentity()
Returns participant identity.
-
getState
@NonNull Participant.State getState()
Returns participant state.
-
getNetworkQualityLevel
@NonNull NetworkQualityLevel getNetworkQualityLevel()
Returns the participant's Network Quality Level.This property represents the quality of a Participant's connection in a Room. This value may not be immediately available, and, in some cases, it's impossible to calculate it. In these instances,
getNetworkQualityLevel()
will returnNetworkQualityLevel.NETWORK_QUALITY_LEVEL_UNKNOWN
. Calling this API in a Peer-to-Peer Room will always returnNetworkQualityLevel.NETWORK_QUALITY_LEVEL_UNKNOWN
. This is part of the Network Quality API and must be enabled by enabling theenableNetworkQuality
option inConnectOptions
.
-
getAudioTracks
@NonNull java.util.List<AudioTrackPublication> getAudioTracks()
ReturnsAudioTrackPublication
s of participant.
-
getVideoTracks
@NonNull java.util.List<VideoTrackPublication> getVideoTracks()
ReturnsVideoTrackPublication
s of participant.
-
getDataTracks
@NonNull java.util.List<DataTrackPublication> getDataTracks()
ReturnsDataTrackPublication
s of participant.
-
-