Partilhar via


RemoteParticipant Class

  • java.lang.Object
    • com.azure.android.communication.calling.RemoteParticipant

public class RemoteParticipant

Describes a remote participant on a call

Method Summary

Modifier and Type Method and Description
void addOnDisplayNameChangedListener(PropertyChangedListener listener)

Adds the specified listener to receive OnDisplayNameChanged events. PropertyChanged Event. Occurs when the remote participant's displayName changes

void addOnIsMutedChangedListener(PropertyChangedListener listener)

Adds the specified listener to receive OnIsMutedChanged events. PropertyChanged Event. Occurs when the remote participant's IsMuted changes

void addOnIsSpeakingChangedListener(PropertyChangedListener listener)

Adds the specified listener to receive OnIsSpeakingChanged events. PropertyChanged Event. Occurs when the remote participant is an active speaker in a multi-party calls

void addOnRoleChangedListener(PropertyChangedListener listener)

Adds the specified listener to receive OnRoleChanged events. PropertyChanged Event. Occurs when the remote participant's role changes

void addOnStateChangedListener(PropertyChangedListener listener)

Adds the specified listener to receive OnStateChanged events. PropertyChanged Event. Occurs when the remote participant state changes

void addOnVideoStreamStateChangedListener(VideoStreamStateChangedListener listener)

Adds the specified listener to receive OnVideoStreamStateChanged events. Listener used to know the video stream state

void addOnVideoStreamsUpdatedListener(RemoteVideoStreamsUpdatedListener listener)

Adds the specified listener to receive OnVideoStreamsUpdated events.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

CallEndReason getCallEndReason()

Reason why participant left the call, contains code/subcode.

CallParticipantRole getCallParticipantRole()

Role of the remote participant

String getDisplayName()

Private Preview Only: Display Name of the remote participant

com.azure.android.communication.common.CommunicationIdentifier getIdentifier()

Get the remote participant identifier information

List<IncomingVideoStream> getIncomingVideoStreams()

Get a list of incoming streams in the current call.

ParticipantState getState()

Current state of the remote participant

List<RemoteVideoStream> getVideoStreams()

Remote Video streams part of the current call

boolean isMuted()

True if the remote participant is muted

boolean isSpeaking()

True if the remote participant is speaking. Only applicable to multi-party calls

void removeOnDisplayNameChangedListener(PropertyChangedListener listener)

Removes the specified listener to receive OnDisplayNameChanged events. PropertyChanged Event. Occurs when the remote participant's displayName changes

void removeOnIsMutedChangedListener(PropertyChangedListener listener)

Removes the specified listener to receive OnIsMutedChanged events. PropertyChanged Event. Occurs when the remote participant's IsMuted changes

void removeOnIsSpeakingChangedListener(PropertyChangedListener listener)

Removes the specified listener to receive OnIsSpeakingChanged events. PropertyChanged Event. Occurs when the remote participant is an active speaker in a multi-party calls

void removeOnRoleChangedListener(PropertyChangedListener listener)

Removes the specified listener to receive OnRoleChanged events. PropertyChanged Event. Occurs when the remote participant's role changes

void removeOnStateChangedListener(PropertyChangedListener listener)

Removes the specified listener to receive OnStateChanged events. PropertyChanged Event. Occurs when the remote participant state changes

void removeOnVideoStreamStateChangedListener(VideoStreamStateChangedListener listener)

Removes the specified listener to receive OnVideoStreamStateChanged events. Listener used to know the video stream state

void removeOnVideoStreamsUpdatedListener(RemoteVideoStreamsUpdatedListener listener)

Removes the specified listener to receive OnVideoStreamsUpdated events.

Method Details

addOnDisplayNameChangedListener

public void addOnDisplayNameChangedListener(PropertyChangedListener listener)

Adds the specified listener to receive OnDisplayNameChanged events. PropertyChanged Event. Occurs when the remote participant's displayName changes

Parameters:

listener

addOnIsMutedChangedListener

public void addOnIsMutedChangedListener(PropertyChangedListener listener)

Adds the specified listener to receive OnIsMutedChanged events. PropertyChanged Event. Occurs when the remote participant's IsMuted changes

Parameters:

listener

addOnIsSpeakingChangedListener

public void addOnIsSpeakingChangedListener(PropertyChangedListener listener)

Adds the specified listener to receive OnIsSpeakingChanged events. PropertyChanged Event. Occurs when the remote participant is an active speaker in a multi-party calls

Parameters:

listener

addOnRoleChangedListener

public void addOnRoleChangedListener(PropertyChangedListener listener)

Adds the specified listener to receive OnRoleChanged events. PropertyChanged Event. Occurs when the remote participant's role changes

Parameters:

listener

addOnStateChangedListener

public void addOnStateChangedListener(PropertyChangedListener listener)

Adds the specified listener to receive OnStateChanged events. PropertyChanged Event. Occurs when the remote participant state changes

Parameters:

listener

addOnVideoStreamStateChangedListener

public void addOnVideoStreamStateChangedListener(VideoStreamStateChangedListener listener)

Adds the specified listener to receive OnVideoStreamStateChanged events. Listener used to know the video stream state

Parameters:

listener

addOnVideoStreamsUpdatedListener

public void addOnVideoStreamsUpdatedListener(RemoteVideoStreamsUpdatedListener listener)

Adds the specified listener to receive OnVideoStreamsUpdated events.

Parameters:

listener

finalize

protected void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

getCallEndReason

public CallEndReason getCallEndReason()

Reason why participant left the call, contains code/subcode.

getCallParticipantRole

public CallParticipantRole getCallParticipantRole()

Role of the remote participant

getDisplayName

public String getDisplayName()

Private Preview Only: Display Name of the remote participant

getIdentifier

public com.azure.android.communication.common.CommunicationIdentifier getIdentifier()

Get the remote participant identifier information

Returns:

a CommunicationIdentifier object representing the remote participant

getIncomingVideoStreams

public List getIncomingVideoStreams()

Get a list of incoming streams in the current call.

getState

public ParticipantState getState()

Current state of the remote participant

getVideoStreams

public List getVideoStreams()

Remote Video streams part of the current call

isMuted

public boolean isMuted()

True if the remote participant is muted

isSpeaking

public boolean isSpeaking()

True if the remote participant is speaking. Only applicable to multi-party calls

removeOnDisplayNameChangedListener

public void removeOnDisplayNameChangedListener(PropertyChangedListener listener)

Removes the specified listener to receive OnDisplayNameChanged events. PropertyChanged Event. Occurs when the remote participant's displayName changes

Parameters:

listener

removeOnIsMutedChangedListener

public void removeOnIsMutedChangedListener(PropertyChangedListener listener)

Removes the specified listener to receive OnIsMutedChanged events. PropertyChanged Event. Occurs when the remote participant's IsMuted changes

Parameters:

listener

removeOnIsSpeakingChangedListener

public void removeOnIsSpeakingChangedListener(PropertyChangedListener listener)

Removes the specified listener to receive OnIsSpeakingChanged events. PropertyChanged Event. Occurs when the remote participant is an active speaker in a multi-party calls

Parameters:

listener

removeOnRoleChangedListener

public void removeOnRoleChangedListener(PropertyChangedListener listener)

Removes the specified listener to receive OnRoleChanged events. PropertyChanged Event. Occurs when the remote participant's role changes

Parameters:

listener

removeOnStateChangedListener

public void removeOnStateChangedListener(PropertyChangedListener listener)

Removes the specified listener to receive OnStateChanged events. PropertyChanged Event. Occurs when the remote participant state changes

Parameters:

listener

removeOnVideoStreamStateChangedListener

public void removeOnVideoStreamStateChangedListener(VideoStreamStateChangedListener listener)

Removes the specified listener to receive OnVideoStreamStateChanged events. Listener used to know the video stream state

Parameters:

listener

removeOnVideoStreamsUpdatedListener

public void removeOnVideoStreamsUpdatedListener(RemoteVideoStreamsUpdatedListener listener)

Removes the specified listener to receive OnVideoStreamsUpdated events.

Parameters:

listener

Applies to