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 interface
RemoteParticipant.Listener
Interface that providesRemoteParticipant
events.-
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.String
getIdentity()
Returns the identity of the remote participant.NetworkQualityLevel
getNetworkQualityLevel()
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.String
getSid()
Returns the SID of a remote participant.Participant.State
getState()
Returns participant state.java.util.List<VideoTrackPublication>
getVideoTracks()
Returns read-only list of video track publications.void
setListener(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:
getSid
in interfaceParticipant
-
getIdentity
@NonNull public java.lang.String getIdentity()
Returns the identity of the remote participant.- Specified by:
getIdentity
in interfaceParticipant
-
getState
@NonNull public Participant.State getState()
Returns participant state.- Specified by:
getState
in interfaceParticipant
-
getNetworkQualityLevel
@NonNull public NetworkQualityLevel getNetworkQualityLevel()
Returns theRemoteParticipant
's Network Quality Level.- Specified by:
getNetworkQualityLevel
in interfaceParticipant
- See Also:
Participant.getNetworkQualityLevel()
-
getAudioTracks
@NonNull public java.util.List<AudioTrackPublication> getAudioTracks()
Returns read-only list of audio track publications.- Specified by:
getAudioTracks
in interfaceParticipant
-
getVideoTracks
@NonNull public java.util.List<VideoTrackPublication> getVideoTracks()
Returns read-only list of video track publications.- Specified by:
getVideoTracks
in interfaceParticipant
-
getDataTracks
@NonNull public java.util.List<DataTrackPublication> getDataTracks()
Returns read-only list of data track publications.- Specified by:
getDataTracks
in 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.
-
-