Package com.twilio.video
Interface RemoteParticipant.Listener
-
- Enclosing class:
- RemoteParticipant
public static interface RemoteParticipant.ListenerInterface that providesRemoteParticipantevents.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidonAudioTrackDisabled(RemoteParticipant remoteParticipant, RemoteAudioTrackPublication remoteAudioTrackPublication)This method notifies the listener that aRemoteParticipantaudio track has been disabled.voidonAudioTrackEnabled(RemoteParticipant remoteParticipant, RemoteAudioTrackPublication remoteAudioTrackPublication)This method notifies the listener that aRemoteParticipantaudio track has been enabled.voidonAudioTrackPublished(RemoteParticipant remoteParticipant, RemoteAudioTrackPublication remoteAudioTrackPublication)This method notifies the listener that aRemoteParticipanthas published aRemoteAudioTrackto thisRoom.default voidonAudioTrackPublishPriorityChanged(RemoteParticipant remoteParticipant, RemoteAudioTrackPublication remoteAudioTrackPublication, TrackPriority trackPriority)This method notifies the listener that theRemoteParticipantchanged the published priority of theRemoteAudioTrack.voidonAudioTrackSubscribed(RemoteParticipant remoteParticipant, RemoteAudioTrackPublication remoteAudioTrackPublication, RemoteAudioTrack remoteAudioTrack)This method notifies the listener theRemoteAudioTrackof theRemoteParticipanthas been subscribed to.voidonAudioTrackSubscriptionFailed(RemoteParticipant remoteParticipant, RemoteAudioTrackPublication remoteAudioTrackPublication, TwilioException twilioException)This method notifies the listener that media negotiation for aRemoteAudioTrackfailed.voidonAudioTrackUnpublished(RemoteParticipant remoteParticipant, RemoteAudioTrackPublication remoteAudioTrackPublication)This method notifies the listener that aRemoteParticipanthas unpublished aRemoteAudioTrackfrom thisRoom.voidonAudioTrackUnsubscribed(RemoteParticipant remoteParticipant, RemoteAudioTrackPublication remoteAudioTrackPublication, RemoteAudioTrack remoteAudioTrack)This method notifies the listener that theRemoteAudioTrackof theRemoteParticipanthas been unsubscribed from.voidonDataTrackPublished(RemoteParticipant remoteParticipant, RemoteDataTrackPublication remoteDataTrackPublication)This method notifies the listener that aRemoteParticipanthas published aRemoteDataTrackto thisRoom.default voidonDataTrackPublishPriorityChanged(RemoteParticipant remoteParticipant, RemoteDataTrackPublication remoteDataTrackPublication, TrackPriority trackPriority)This method notifies the listener that theRemoteParticipantchanged the published priority of theRemoteDataTrack.voidonDataTrackSubscribed(RemoteParticipant remoteParticipant, RemoteDataTrackPublication remoteDataTrackPublication, RemoteDataTrack remoteDataTrack)This method notifies the listener theRemoteDataTrackof theRemoteParticipanthas been subscribed to.voidonDataTrackSubscriptionFailed(RemoteParticipant remoteParticipant, RemoteDataTrackPublication remoteDataTrackPublication, TwilioException twilioException)This method notifies the listener that media negotiation for aRemoteDataTrackfailed.voidonDataTrackUnpublished(RemoteParticipant remoteParticipant, RemoteDataTrackPublication remoteDataTrackPublication)This method notifies the listener that aRemoteParticipanthas removed aRemoteDataTrackfrom thisRoom.voidonDataTrackUnsubscribed(RemoteParticipant remoteParticipant, RemoteDataTrackPublication remoteDataTrackPublication, RemoteDataTrack remoteDataTrack)This method notifies the listener that theRemoteDataTrackof theRemoteParticipanthas been unsubscribed from.default voidonNetworkQualityLevelChanged(RemoteParticipant remoteParticipant, NetworkQualityLevel networkQualityLevel)This method notifies the listener that theRemoteParticipant'sNetworkQualityLevelhas changed.voidonVideoTrackDisabled(RemoteParticipant remoteParticipant, RemoteVideoTrackPublication remoteVideoTrackPublication)This method notifies the listener that aRemoteParticipantvideo track has been disabled.voidonVideoTrackEnabled(RemoteParticipant remoteParticipant, RemoteVideoTrackPublication remoteVideoTrackPublication)This method notifies the listener that aRemoteParticipantvideo track has been enabled.voidonVideoTrackPublished(RemoteParticipant remoteParticipant, RemoteVideoTrackPublication remoteVideoTrackPublication)This method notifies the listener that aRemoteParticipanthas published aRemoteVideoTrackto thisRoom.default voidonVideoTrackPublishPriorityChanged(RemoteParticipant remoteParticipant, RemoteVideoTrackPublication remoteVideoTrackPublication, TrackPriority trackPriority)This method notifies the listener that theRemoteParticipantchanged the published priority of theRemoteVideoTrack.voidonVideoTrackSubscribed(RemoteParticipant remoteParticipant, RemoteVideoTrackPublication remoteVideoTrackPublication, RemoteVideoTrack remoteVideoTrack)This method notifies the listener theRemoteVideoTrackof theRemoteParticipanthas been subscribed to.voidonVideoTrackSubscriptionFailed(RemoteParticipant remoteParticipant, RemoteVideoTrackPublication remoteVideoTrackPublication, TwilioException twilioException)This method notifies the listener that media negotiation for aRemoteVideoTrackfailed.default voidonVideoTrackSwitchedOff(RemoteParticipant remoteParticipant, RemoteVideoTrack remoteVideoTrack)This method notifies the listener that a subscribedRemoteVideoTrackis switched off based on the bandwidth allocation algorithm.default voidonVideoTrackSwitchedOn(RemoteParticipant remoteParticipant, RemoteVideoTrack remoteVideoTrack)This method notifies the listener that a subscribedRemoteVideoTrackthat was switched off is now switched back on based on the bandwidth allocation algorithm.voidonVideoTrackUnpublished(RemoteParticipant remoteParticipant, RemoteVideoTrackPublication remoteVideoTrackPublication)This method notifies the listener that aRemoteParticipanthas removed aRemoteVideoTrackfrom thisRoom.voidonVideoTrackUnsubscribed(RemoteParticipant remoteParticipant, RemoteVideoTrackPublication remoteVideoTrackPublication, RemoteVideoTrack remoteVideoTrack)This method notifies the listener that theRemoteVideoTrackof theRemoteParticipanthas been unsubscribed from.
-
-
-
Method Detail
-
onAudioTrackPublished
void onAudioTrackPublished(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication)This method notifies the listener that aRemoteParticipanthas published aRemoteAudioTrackto thisRoom. The audio of the track is not audible until the track has been subscribed to.- Parameters:
remoteParticipant- The participant object associated with this audio track.remoteAudioTrackPublication- The audio track publication.
-
onAudioTrackUnpublished
void onAudioTrackUnpublished(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication)This method notifies the listener that aRemoteParticipanthas unpublished aRemoteAudioTrackfrom thisRoom.- Parameters:
remoteParticipant- The participant object associated with this audio track.remoteAudioTrackPublication- The audio track publication.
-
onAudioTrackSubscribed
void onAudioTrackSubscribed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull RemoteAudioTrack remoteAudioTrack)This method notifies the listener theRemoteAudioTrackof theRemoteParticipanthas been subscribed to. The audio track is audible after this callback.- Parameters:
remoteParticipant- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication- The audio track publication.remoteAudioTrack- The audio track subscribed to.
-
onAudioTrackSubscriptionFailed
void onAudioTrackSubscriptionFailed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull TwilioException twilioException)This method notifies the listener that media negotiation for aRemoteAudioTrackfailed.- Parameters:
remoteParticipant- The remoteParticipant object associated with the audio track.remoteAudioTrackPublication- The audio track publication for which subscription failed.twilioException- Exception that describes failure.
-
onAudioTrackUnsubscribed
void onAudioTrackUnsubscribed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull RemoteAudioTrack remoteAudioTrack)This method notifies the listener that theRemoteAudioTrackof theRemoteParticipanthas been unsubscribed from. The track is no longer audible after being unsubscribed from the audio track.- Parameters:
remoteParticipant- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication- The audio track publication.remoteAudioTrack- The audio track unsubscribed from.
-
onAudioTrackPublishPriorityChanged
default void onAudioTrackPublishPriorityChanged(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull TrackPriority trackPriority)This method notifies the listener that theRemoteParticipantchanged the published priority of theRemoteAudioTrack.- Parameters:
remoteParticipant- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication- The audio track publication.trackPriority- The new track priority.
-
onVideoTrackPublished
void onVideoTrackPublished(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication)This method notifies the listener that aRemoteParticipanthas published aRemoteVideoTrackto thisRoom. Video frames will not begin flowing until the video track has been subscribed to.- Parameters:
remoteParticipant- The participant object associated with this video track.remoteVideoTrackPublication- The video track publication.
-
onVideoTrackUnpublished
void onVideoTrackUnpublished(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication)This method notifies the listener that aRemoteParticipanthas removed aRemoteVideoTrackfrom thisRoom.- Parameters:
remoteParticipant- The participant object associated with this video track.remoteVideoTrackPublication- The video track publication.
-
onVideoTrackSubscribed
void onVideoTrackSubscribed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull RemoteVideoTrack remoteVideoTrack)This method notifies the listener theRemoteVideoTrackof theRemoteParticipanthas been subscribed to. Video frames are now flowing and can be rendered.- Parameters:
remoteParticipant- The remoteParticipant object associated with this video track.remoteVideoTrackPublication- The video track publication.remoteVideoTrack- The video track subscribed to.
-
onVideoTrackSubscriptionFailed
void onVideoTrackSubscriptionFailed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull TwilioException twilioException)This method notifies the listener that media negotiation for aRemoteVideoTrackfailed.- Parameters:
remoteParticipant- The remoteParticipant object associated with the video track.remoteVideoTrackPublication- The video track publication for which subscription failed.twilioException- Exception that describes failure.
-
onVideoTrackUnsubscribed
void onVideoTrackUnsubscribed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull RemoteVideoTrack remoteVideoTrack)This method notifies the listener that theRemoteVideoTrackof theRemoteParticipanthas been unsubscribed from. Video frames are no longer flowing. AllVideoSinks of the video track have been removed before receiving this callback to prevent native memory leaks.- Parameters:
remoteParticipant- The remoteParticipant object associated with this video track.remoteVideoTrackPublication- The video track publication.remoteVideoTrack- The video track removed from this room.
-
onVideoTrackPublishPriorityChanged
default void onVideoTrackPublishPriorityChanged(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull TrackPriority trackPriority)This method notifies the listener that theRemoteParticipantchanged the published priority of theRemoteVideoTrack.- Parameters:
remoteParticipant- The remoteParticipant object associated with this video track.remoteVideoTrackPublication- The video track publication.trackPriority- The new track priority.
-
onDataTrackPublished
void onDataTrackPublished(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteDataTrackPublication remoteDataTrackPublication)This method notifies the listener that aRemoteParticipanthas published aRemoteDataTrackto thisRoom.- Parameters:
remoteParticipant- The participant object associated with this data track.remoteDataTrackPublication- The data track publication.
-
onDataTrackUnpublished
void onDataTrackUnpublished(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteDataTrackPublication remoteDataTrackPublication)This method notifies the listener that aRemoteParticipanthas removed aRemoteDataTrackfrom thisRoom.- Parameters:
remoteParticipant- The participant object associated with this data track.remoteDataTrackPublication- The data track publication.
-
onDataTrackSubscribed
void onDataTrackSubscribed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteDataTrackPublication remoteDataTrackPublication, @NonNull RemoteDataTrack remoteDataTrack)This method notifies the listener theRemoteDataTrackof theRemoteParticipanthas been subscribed to. Data track messages can be now be received.- Parameters:
remoteParticipant- The remoteParticipant object associated with this data track.remoteDataTrackPublication- The data track publication.remoteDataTrack- The data track subscribed to.
-
onDataTrackSubscriptionFailed
void onDataTrackSubscriptionFailed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteDataTrackPublication remoteDataTrackPublication, @NonNull TwilioException twilioException)This method notifies the listener that media negotiation for aRemoteDataTrackfailed.- Parameters:
remoteParticipant- The remoteParticipant object associated with the data track.remoteDataTrackPublication- The data track publication for which subscription failed.twilioException- Exception that describes failure.
-
onDataTrackUnsubscribed
void onDataTrackUnsubscribed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteDataTrackPublication remoteDataTrackPublication, @NonNull RemoteDataTrack remoteDataTrack)This method notifies the listener that theRemoteDataTrackof theRemoteParticipanthas been unsubscribed from. Data track messages will no longer be received.- Parameters:
remoteParticipant- The remoteParticipant object associated with this data track.remoteDataTrackPublication- The data track publication.remoteDataTrack- The data track removed from this room.
-
onDataTrackPublishPriorityChanged
default void onDataTrackPublishPriorityChanged(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteDataTrackPublication remoteDataTrackPublication, @NonNull TrackPriority trackPriority)This method notifies the listener that theRemoteParticipantchanged the published priority of theRemoteDataTrack.- Parameters:
remoteParticipant- The remoteParticipant object associated with this data track.remoteDataTrackPublication- The data track publication.trackPriority- The new track priority.
-
onAudioTrackEnabled
void onAudioTrackEnabled(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication)This method notifies the listener that aRemoteParticipantaudio track has been enabled.- Parameters:
remoteParticipant- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication- The audio track publication.
-
onAudioTrackDisabled
void onAudioTrackDisabled(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication)This method notifies the listener that aRemoteParticipantaudio track has been disabled.- Parameters:
remoteParticipant- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication- The audio track publication.
-
onVideoTrackEnabled
void onVideoTrackEnabled(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication)This method notifies the listener that aRemoteParticipantvideo track has been enabled.- Parameters:
remoteParticipant- The remoteParticipant object associated with this audio track.remoteVideoTrackPublication- The video track publication.
-
onVideoTrackDisabled
void onVideoTrackDisabled(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication)This method notifies the listener that aRemoteParticipantvideo track has been disabled.- Parameters:
remoteParticipant- The remoteParticipant object associated with this audio track.remoteVideoTrackPublication- The video track publication.
-
onVideoTrackSwitchedOn
default void onVideoTrackSwitchedOn(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrack remoteVideoTrack)This method notifies the listener that a subscribedRemoteVideoTrackthat was switched off is now switched back on based on the bandwidth allocation algorithm. Video will be received for theRemoteVideoTrackuntil it is switched off.- Parameters:
remoteParticipant- The remoteParticipant object associated with the video track.remoteVideoTrack- The subscribed remote video track.
-
onVideoTrackSwitchedOff
default void onVideoTrackSwitchedOff(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrack remoteVideoTrack)This method notifies the listener that a subscribedRemoteVideoTrackis switched off based on the bandwidth allocation algorithm. Video will not be received for theRemoteVideoTrackuntil it is switched back on.- Parameters:
remoteParticipant- The remoteParticipant object associated with the video track.remoteVideoTrack- The subscribed remote video track.
-
onNetworkQualityLevelChanged
default void onNetworkQualityLevelChanged(@NonNull RemoteParticipant remoteParticipant, @NonNull NetworkQualityLevel networkQualityLevel)This method notifies the listener that theRemoteParticipant'sNetworkQualityLevelhas changed.- Parameters:
remoteParticipant- TheRemoteParticipant.networkQualityLevel- The newNetworkQualityLevel.
-
-