Package com.twilio.video
Class RemoteParticipant
- java.lang.Object
-
- com.twilio.video.RemoteParticipant
-
- All Implemented Interfaces:
Participant
public class RemoteParticipant extends java.lang.Object implements Participant
A participant represents a remote user that can connect to aRoom.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRemoteParticipant.ListenerInterface that providesRemoteParticipantevents.-
Nested classes/interfaces inherited from interface com.twilio.video.Participant
Participant.State
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AudioTrackPublication>getAudioTracks()Returns read-only list of audio track publications.java.util.List<DataTrackPublication>getDataTracks()Returns read-only list of data track publications.java.lang.StringgetIdentity()Returns the identity of the remote participant.NetworkQualityLevelgetNetworkQualityLevel()Returns theRemoteParticipant's Network Quality Level.java.util.List<RemoteAudioTrackPublication>getRemoteAudioTracks()Returns read-only list of remote audio track publications.java.util.List<RemoteDataTrackPublication>getRemoteDataTracks()Returns a read-only list of remote data track publications.java.util.List<RemoteVideoTrackPublication>getRemoteVideoTracks()Returns read-only list of remote video track publications.java.lang.StringgetSid()Returns the SID of a remote participant.Participant.StategetState()Returns participant state.java.util.List<VideoTrackPublication>getVideoTracks()Returns read-only list of video track publications.voidsetListener(RemoteParticipant.Listener listener)Set listener for this participant events.
-
-
-
Method Detail
-
getSid
@NonNull public java.lang.String getSid()
Returns the SID of a remote participant.- Specified by:
getSidin interfaceParticipant
-
getIdentity
@NonNull public java.lang.String getIdentity()
Returns the identity of the remote participant.- Specified by:
getIdentityin interfaceParticipant
-
getState
@NonNull public Participant.State getState()
Returns participant state.- Specified by:
getStatein interfaceParticipant
-
getNetworkQualityLevel
@NonNull public NetworkQualityLevel getNetworkQualityLevel()
Returns theRemoteParticipant's Network Quality Level.- Specified by:
getNetworkQualityLevelin interfaceParticipant- See Also:
Participant.getNetworkQualityLevel()
-
getAudioTracks
@NonNull public java.util.List<AudioTrackPublication> getAudioTracks()
Returns read-only list of audio track publications.- Specified by:
getAudioTracksin interfaceParticipant
-
getVideoTracks
@NonNull public java.util.List<VideoTrackPublication> getVideoTracks()
Returns read-only list of video track publications.- Specified by:
getVideoTracksin interfaceParticipant
-
getDataTracks
@NonNull public java.util.List<DataTrackPublication> getDataTracks()
Returns read-only list of data track publications.- Specified by:
getDataTracksin interfaceParticipant
-
getRemoteAudioTracks
public java.util.List<RemoteAudioTrackPublication> getRemoteAudioTracks()
Returns read-only list of remote audio track publications.
-
getRemoteVideoTracks
public java.util.List<RemoteVideoTrackPublication> getRemoteVideoTracks()
Returns read-only list of remote video track publications.
-
getRemoteDataTracks
public java.util.List<RemoteDataTrackPublication> getRemoteDataTracks()
Returns a read-only list of remote data track publications.
-
setListener
public void setListener(RemoteParticipant.Listener listener)
Set listener for this participant events.- Parameters:
listener- of participant events.
-
-