-
- All Implemented Interfaces:
-
com.twilio.video.Participant
public class RemoteParticipant implements Participant
A participant represents a remote user that can connect to a Room.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRemoteParticipant.ListenerInterface that provides RemoteParticipant events.
-
Field Summary
Fields Modifier and Type Field Description private final Stringidentityprivate final Stringsidprivate NetworkQualityLevelnetworkQualityLevel
-
Method Summary
Modifier and Type Method Description StringgetIdentity()Returns the identity of the remote participant. StringgetSid()Returns the SID of a remote participant. NetworkQualityLevelgetNetworkQualityLevel()Returns the RemoteParticipant's Network Quality Level. synchronized Participant.StategetState()Returns participant state. List<AudioTrackPublication>getAudioTracks()Returns read-only list of audio track publications. List<VideoTrackPublication>getVideoTracks()Returns read-only list of video track publications. List<DataTrackPublication>getDataTracks()Returns read-only list of data track publications. List<RemoteAudioTrackPublication>getRemoteAudioTracks()Returns read-only list of remote audio track publications. List<RemoteVideoTrackPublication>getRemoteVideoTracks()Returns read-only list of remote video track publications. List<RemoteDataTrackPublication>getRemoteDataTracks()Returns a read-only list of remote data track publications. voidsetListener(RemoteParticipant.Listener listener)Set listener for this participant events. -
-
Method Detail
-
getIdentity
@NonNull() String getIdentity()
Returns the identity of the remote participant.
-
getNetworkQualityLevel
@NonNull() NetworkQualityLevel getNetworkQualityLevel()
Returns the RemoteParticipant's Network Quality Level.
-
getState
@NonNull() synchronized Participant.State getState()
Returns participant state.
-
getAudioTracks
@NonNull() List<AudioTrackPublication> getAudioTracks()
Returns read-only list of audio track publications.
-
getVideoTracks
@NonNull() List<VideoTrackPublication> getVideoTracks()
Returns read-only list of video track publications.
-
getDataTracks
@NonNull() List<DataTrackPublication> getDataTracks()
Returns read-only list of data track publications.
-
getRemoteAudioTracks
List<RemoteAudioTrackPublication> getRemoteAudioTracks()
Returns read-only list of remote audio track publications.
-
getRemoteVideoTracks
List<RemoteVideoTrackPublication> getRemoteVideoTracks()
Returns read-only list of remote video track publications.
-
getRemoteDataTracks
List<RemoteDataTrackPublication> getRemoteDataTracks()
Returns a read-only list of remote data track publications.
-
setListener
void setListener(RemoteParticipant.Listener listener)
Set listener for this participant events.
- Parameters:
listener- of participant events.
-
-
-
-