-
public interface RemoteParticipant.ListenerInterface that provides RemoteParticipant events.
-
-
Method Summary
Modifier and Type Method Description abstract voidonAudioTrackPublished(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication)This method notifies the listener that a RemoteParticipant has published a to this Room. abstract voidonAudioTrackUnpublished(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication)This method notifies the listener that a RemoteParticipant has unpublished a RemoteAudioTrack from this Room. abstract voidonAudioTrackSubscribed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull() RemoteAudioTrack remoteAudioTrack)This method notifies the listener the RemoteAudioTrack of the has been subscribed to. abstract voidonAudioTrackSubscriptionFailed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull() TwilioException twilioException)This method notifies the listener that media negotiation for a RemoteAudioTrack failed. abstract voidonAudioTrackUnsubscribed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull() RemoteAudioTrack remoteAudioTrack)This method notifies the listener that the RemoteAudioTrack of the has been unsubscribed from. voidonAudioTrackPublishPriorityChanged(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull() TrackPriority trackPriority)This method notifies the listener that the RemoteParticipant changed thepublished priority of the RemoteAudioTrack. abstract voidonVideoTrackPublished(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication)This method notifies the listener that a RemoteParticipant has published a to this Room. abstract voidonVideoTrackUnpublished(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication)This method notifies the listener that a RemoteParticipant has removed a from this Room. abstract voidonVideoTrackSubscribed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull() RemoteVideoTrack remoteVideoTrack)This method notifies the listener the RemoteVideoTrack of the has been subscribed to. abstract voidonVideoTrackSubscriptionFailed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull() TwilioException twilioException)This method notifies the listener that media negotiation for a RemoteVideoTrack failed. abstract voidonVideoTrackUnsubscribed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull() RemoteVideoTrack remoteVideoTrack)This method notifies the listener that the RemoteVideoTrack of the has been unsubscribed from. voidonVideoTrackPublishPriorityChanged(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull() TrackPriority trackPriority)This method notifies the listener that the RemoteParticipant changed thepublished priority of the RemoteVideoTrack. abstract voidonDataTrackPublished(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteDataTrackPublication remoteDataTrackPublication)This method notifies the listener that a RemoteParticipant has published a to this Room. abstract voidonDataTrackUnpublished(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteDataTrackPublication remoteDataTrackPublication)This method notifies the listener that a RemoteParticipant has removed a from this Room. abstract voidonDataTrackSubscribed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteDataTrackPublication remoteDataTrackPublication, @NonNull() RemoteDataTrack remoteDataTrack)This method notifies the listener the RemoteDataTrack of the has been subscribed to. abstract voidonDataTrackSubscriptionFailed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteDataTrackPublication remoteDataTrackPublication, @NonNull() TwilioException twilioException)This method notifies the listener that media negotiation for a RemoteDataTrack failed. abstract voidonDataTrackUnsubscribed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteDataTrackPublication remoteDataTrackPublication, @NonNull() RemoteDataTrack remoteDataTrack)This method notifies the listener that the RemoteDataTrack of the has been unsubscribed from. voidonDataTrackPublishPriorityChanged(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteDataTrackPublication remoteDataTrackPublication, @NonNull() TrackPriority trackPriority)This method notifies the listener that the RemoteParticipant changed thepublished priority of the RemoteDataTrack. abstract voidonAudioTrackEnabled(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication)This method notifies the listener that a RemoteParticipant audio track has beenenabled. abstract voidonAudioTrackDisabled(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication)This method notifies the listener that a RemoteParticipant audio track has beendisabled. abstract voidonVideoTrackEnabled(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication)This method notifies the listener that a RemoteParticipant video track has beenenabled. abstract voidonVideoTrackDisabled(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication)This method notifies the listener that a RemoteParticipant video track has beendisabled. voidonVideoTrackSwitchedOn(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrack remoteVideoTrack)This method notifies the listener that a subscribed RemoteVideoTrack that wasswitched off is now switched back on based on the bandwidth allocation algorithm. voidonVideoTrackSwitchedOff(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrack remoteVideoTrack)This method notifies the listener that a subscribed RemoteVideoTrack is switchedoff based on the bandwidth allocation algorithm. voidonNetworkQualityLevelChanged(@NonNull() RemoteParticipant remoteParticipant, @NonNull() NetworkQualityLevel networkQualityLevel)This method notifies the listener that the RemoteParticipant's has changed. -
-
Method Detail
-
onAudioTrackPublished
abstract void onAudioTrackPublished(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication)
This method notifies the listener that a RemoteParticipant has published a to this Room. The audio of the track is not audible until thetrack has been subscribed to.
- Parameters:
remoteParticipant- The participant object associated with this audio track.remoteAudioTrackPublication- The audio track publication.
-
onAudioTrackUnpublished
abstract void onAudioTrackUnpublished(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication)
This method notifies the listener that a RemoteParticipant has unpublished a RemoteAudioTrack from this Room.
- Parameters:
remoteParticipant- The participant object associated with this audio track.remoteAudioTrackPublication- The audio track publication.
-
onAudioTrackSubscribed
abstract void onAudioTrackSubscribed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull() RemoteAudioTrack remoteAudioTrack)
This method notifies the listener the RemoteAudioTrack of the has been subscribed to. The audio track is audible after thiscallback.
- Parameters:
remoteParticipant- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication- The audio track publication.remoteAudioTrack- The audio track subscribed to.
-
onAudioTrackSubscriptionFailed
abstract void onAudioTrackSubscriptionFailed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull() TwilioException twilioException)
This method notifies the listener that media negotiation for a RemoteAudioTrack failed.
- Parameters:
remoteParticipant- The remoteParticipant object associated with the audio track.remoteAudioTrackPublication- The audio track publication for which subscriptionfailed.twilioException- Exception that describes failure.
-
onAudioTrackUnsubscribed
abstract void onAudioTrackUnsubscribed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull() RemoteAudioTrack remoteAudioTrack)
This method notifies the listener that the RemoteAudioTrack of the has been unsubscribed from. The track is no longer audible after beingunsubscribed 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
@Deprecated() void onAudioTrackPublishPriorityChanged(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull() TrackPriority trackPriority)
This method notifies the listener that the RemoteParticipant changed thepublished priority of the RemoteAudioTrack.
- Parameters:
remoteParticipant- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication- The audio track publication.trackPriority- The new track priority.
-
onVideoTrackPublished
abstract void onVideoTrackPublished(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication)
This method notifies the listener that a RemoteParticipant has published a to this Room. Video frames will not begin flowing until thevideo track has been subscribed to.
- Parameters:
remoteParticipant- The participant object associated with this video track.remoteVideoTrackPublication- The video track publication.
-
onVideoTrackUnpublished
abstract void onVideoTrackUnpublished(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication)
This method notifies the listener that a RemoteParticipant has removed a from this Room.
- Parameters:
remoteParticipant- The participant object associated with this video track.remoteVideoTrackPublication- The video track publication.
-
onVideoTrackSubscribed
abstract void onVideoTrackSubscribed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull() RemoteVideoTrack remoteVideoTrack)
This method notifies the listener the RemoteVideoTrack of the has been subscribed to. Video frames are now flowing and can berendered.
- Parameters:
remoteParticipant- The remoteParticipant object associated with this video track.remoteVideoTrackPublication- The video track publication.remoteVideoTrack- The video track subscribed to.
-
onVideoTrackSubscriptionFailed
abstract void onVideoTrackSubscriptionFailed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull() TwilioException twilioException)
This method notifies the listener that media negotiation for a RemoteVideoTrack failed.
- Parameters:
remoteParticipant- The remoteParticipant object associated with the video track.remoteVideoTrackPublication- The video track publication for which subscriptionfailed.twilioException- Exception that describes failure.
-
onVideoTrackUnsubscribed
abstract void onVideoTrackUnsubscribed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull() RemoteVideoTrack remoteVideoTrack)
This method notifies the listener that the RemoteVideoTrack of the has been unsubscribed from. Video frames are no longer flowing. All tvi.webrtc.VideoSinks of the video track have been removed before receiving thiscallback 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
@Deprecated() void onVideoTrackPublishPriorityChanged(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull() TrackPriority trackPriority)
This method notifies the listener that the RemoteParticipant changed thepublished priority of the RemoteVideoTrack.
- Parameters:
remoteParticipant- The remoteParticipant object associated with this video track.remoteVideoTrackPublication- The video track publication.trackPriority- The new track priority.
-
onDataTrackPublished
abstract void onDataTrackPublished(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteDataTrackPublication remoteDataTrackPublication)
This method notifies the listener that a RemoteParticipant has published a to this Room.
- Parameters:
remoteParticipant- The participant object associated with this data track.remoteDataTrackPublication- The data track publication.
-
onDataTrackUnpublished
abstract void onDataTrackUnpublished(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteDataTrackPublication remoteDataTrackPublication)
This method notifies the listener that a RemoteParticipant has removed a from this Room.
- Parameters:
remoteParticipant- The participant object associated with this data track.remoteDataTrackPublication- The data track publication.
-
onDataTrackSubscribed
abstract void onDataTrackSubscribed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteDataTrackPublication remoteDataTrackPublication, @NonNull() RemoteDataTrack remoteDataTrack)
This method notifies the listener the RemoteDataTrack of the has 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
abstract void onDataTrackSubscriptionFailed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteDataTrackPublication remoteDataTrackPublication, @NonNull() TwilioException twilioException)
This method notifies the listener that media negotiation for a RemoteDataTrack failed.
- Parameters:
remoteParticipant- The remoteParticipant object associated with the data track.remoteDataTrackPublication- The data track publication for which subscriptionfailed.twilioException- Exception that describes failure.
-
onDataTrackUnsubscribed
abstract void onDataTrackUnsubscribed(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteDataTrackPublication remoteDataTrackPublication, @NonNull() RemoteDataTrack remoteDataTrack)
This method notifies the listener that the RemoteDataTrack of the has been unsubscribed from. Data track messages will no longer bereceived.
- Parameters:
remoteParticipant- The remoteParticipant object associated with this data track.remoteDataTrackPublication- The data track publication.remoteDataTrack- The data track removed from this room.
-
onDataTrackPublishPriorityChanged
@Deprecated() void onDataTrackPublishPriorityChanged(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteDataTrackPublication remoteDataTrackPublication, @NonNull() TrackPriority trackPriority)
This method notifies the listener that the RemoteParticipant changed thepublished priority of the RemoteDataTrack.
- Parameters:
remoteParticipant- The remoteParticipant object associated with this data track.remoteDataTrackPublication- The data track publication.trackPriority- The new track priority.
-
onAudioTrackEnabled
abstract void onAudioTrackEnabled(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication)
This method notifies the listener that a RemoteParticipant audio track has beenenabled.
- Parameters:
remoteParticipant- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication- The audio track publication.
-
onAudioTrackDisabled
abstract void onAudioTrackDisabled(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteAudioTrackPublication remoteAudioTrackPublication)
This method notifies the listener that a RemoteParticipant audio track has beendisabled.
- Parameters:
remoteParticipant- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication- The audio track publication.
-
onVideoTrackEnabled
abstract void onVideoTrackEnabled(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication)
This method notifies the listener that a RemoteParticipant video track has beenenabled.
- Parameters:
remoteParticipant- The remoteParticipant object associated with this audio track.remoteVideoTrackPublication- The video track publication.
-
onVideoTrackDisabled
abstract void onVideoTrackDisabled(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrackPublication remoteVideoTrackPublication)
This method notifies the listener that a RemoteParticipant video track has beendisabled.
- Parameters:
remoteParticipant- The remoteParticipant object associated with this audio track.remoteVideoTrackPublication- The video track publication.
-
onVideoTrackSwitchedOn
void onVideoTrackSwitchedOn(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrack remoteVideoTrack)
This method notifies the listener that a subscribed RemoteVideoTrack that wasswitched off is now switched back on based on the bandwidth allocation algorithm. Videowill be received for the RemoteVideoTrack until it is switched off.
- Parameters:
remoteParticipant- The remoteParticipant object associated with the video track.remoteVideoTrack- The subscribed remote video track.
-
onVideoTrackSwitchedOff
void onVideoTrackSwitchedOff(@NonNull() RemoteParticipant remoteParticipant, @NonNull() RemoteVideoTrack remoteVideoTrack)
This method notifies the listener that a subscribed RemoteVideoTrack is switchedoff based on the bandwidth allocation algorithm. Video will not be received for the RemoteVideoTrack until it is switched back on.
- Parameters:
remoteParticipant- The remoteParticipant object associated with the video track.remoteVideoTrack- The subscribed remote video track.
-
onNetworkQualityLevelChanged
void onNetworkQualityLevelChanged(@NonNull() RemoteParticipant remoteParticipant, @NonNull() NetworkQualityLevel networkQualityLevel)
This method notifies the listener that the RemoteParticipant's has changed.
- Parameters:
remoteParticipant- The RemoteParticipant.networkQualityLevel- The new NetworkQualityLevel.
-
-
-
-