public static interface RemoteParticipant.Listener
RemoteParticipant
events.Modifier and Type | Method and Description |
---|---|
void |
onAudioTrackDisabled(RemoteParticipant remoteParticipant,
RemoteAudioTrackPublication remoteAudioTrackPublication)
This method notifies the listener that a
RemoteParticipant audio track has been
disabled. |
void |
onAudioTrackEnabled(RemoteParticipant remoteParticipant,
RemoteAudioTrackPublication remoteAudioTrackPublication)
This method notifies the listener that a
RemoteParticipant audio track has been
enabled. |
void |
onAudioTrackPublished(RemoteParticipant remoteParticipant,
RemoteAudioTrackPublication remoteAudioTrackPublication)
This method notifies the listener that a
RemoteParticipant has published a RemoteAudioTrack to this Room . |
default void |
onAudioTrackPublishPriorityChanged(RemoteParticipant remoteParticipant,
RemoteAudioTrackPublication remoteAudioTrackPublication,
TrackPriority trackPriority)
This method notifies the listener that the
RemoteParticipant changed the
published priority of the RemoteAudioTrack . |
void |
onAudioTrackSubscribed(RemoteParticipant remoteParticipant,
RemoteAudioTrackPublication remoteAudioTrackPublication,
RemoteAudioTrack remoteAudioTrack)
This method notifies the listener the
RemoteAudioTrack of the RemoteParticipant has been subscribed to. |
void |
onAudioTrackSubscriptionFailed(RemoteParticipant remoteParticipant,
RemoteAudioTrackPublication remoteAudioTrackPublication,
TwilioException twilioException)
This method notifies the listener that media negotiation for a
RemoteAudioTrack
failed. |
void |
onAudioTrackUnpublished(RemoteParticipant remoteParticipant,
RemoteAudioTrackPublication remoteAudioTrackPublication)
This method notifies the listener that a
RemoteParticipant has unpublished a
RemoteAudioTrack from this Room . |
void |
onAudioTrackUnsubscribed(RemoteParticipant remoteParticipant,
RemoteAudioTrackPublication remoteAudioTrackPublication,
RemoteAudioTrack remoteAudioTrack)
This method notifies the listener that the
RemoteAudioTrack of the RemoteParticipant has been unsubscribed from. |
void |
onDataTrackPublished(RemoteParticipant remoteParticipant,
RemoteDataTrackPublication remoteDataTrackPublication)
This method notifies the listener that a
RemoteParticipant has published a RemoteDataTrack to this Room . |
default void |
onDataTrackPublishPriorityChanged(RemoteParticipant remoteParticipant,
RemoteDataTrackPublication remoteDataTrackPublication,
TrackPriority trackPriority)
This method notifies the listener that the
RemoteParticipant changed the
published priority of the RemoteDataTrack . |
void |
onDataTrackSubscribed(RemoteParticipant remoteParticipant,
RemoteDataTrackPublication remoteDataTrackPublication,
RemoteDataTrack remoteDataTrack)
This method notifies the listener the
RemoteDataTrack of the RemoteParticipant has been subscribed to. |
void |
onDataTrackSubscriptionFailed(RemoteParticipant remoteParticipant,
RemoteDataTrackPublication remoteDataTrackPublication,
TwilioException twilioException)
This method notifies the listener that media negotiation for a
RemoteDataTrack
failed. |
void |
onDataTrackUnpublished(RemoteParticipant remoteParticipant,
RemoteDataTrackPublication remoteDataTrackPublication)
This method notifies the listener that a
RemoteParticipant has removed a RemoteDataTrack from this Room . |
void |
onDataTrackUnsubscribed(RemoteParticipant remoteParticipant,
RemoteDataTrackPublication remoteDataTrackPublication,
RemoteDataTrack remoteDataTrack)
This method notifies the listener that the
RemoteDataTrack of the RemoteParticipant has been unsubscribed from. |
default void |
onNetworkQualityLevelChanged(RemoteParticipant remoteParticipant,
NetworkQualityLevel networkQualityLevel)
This method notifies the listener that the
RemoteParticipant 's NetworkQualityLevel has changed. |
void |
onVideoTrackDisabled(RemoteParticipant remoteParticipant,
RemoteVideoTrackPublication remoteVideoTrackPublication)
This method notifies the listener that a
RemoteParticipant video track has been
disabled. |
void |
onVideoTrackEnabled(RemoteParticipant remoteParticipant,
RemoteVideoTrackPublication remoteVideoTrackPublication)
This method notifies the listener that a
RemoteParticipant video track has been
enabled. |
void |
onVideoTrackPublished(RemoteParticipant remoteParticipant,
RemoteVideoTrackPublication remoteVideoTrackPublication)
This method notifies the listener that a
RemoteParticipant has published a RemoteVideoTrack to this Room . |
default void |
onVideoTrackPublishPriorityChanged(RemoteParticipant remoteParticipant,
RemoteVideoTrackPublication remoteVideoTrackPublication,
TrackPriority trackPriority)
This method notifies the listener that the
RemoteParticipant changed the
published priority of the RemoteVideoTrack . |
void |
onVideoTrackSubscribed(RemoteParticipant remoteParticipant,
RemoteVideoTrackPublication remoteVideoTrackPublication,
RemoteVideoTrack remoteVideoTrack)
This method notifies the listener the
RemoteVideoTrack of the RemoteParticipant has been subscribed to. |
void |
onVideoTrackSubscriptionFailed(RemoteParticipant remoteParticipant,
RemoteVideoTrackPublication remoteVideoTrackPublication,
TwilioException twilioException)
This method notifies the listener that media negotiation for a
RemoteVideoTrack
failed. |
default void |
onVideoTrackSwitchedOff(RemoteParticipant remoteParticipant,
RemoteVideoTrack remoteVideoTrack)
This method notifies the listener that a subscribed
RemoteVideoTrack is switched
off based on the bandwidth allocation algorithm. |
default void |
onVideoTrackSwitchedOn(RemoteParticipant remoteParticipant,
RemoteVideoTrack remoteVideoTrack)
This method notifies the listener that a subscribed
RemoteVideoTrack that was
switched off is now switched back on based on the bandwidth allocation algorithm. |
void |
onVideoTrackUnpublished(RemoteParticipant remoteParticipant,
RemoteVideoTrackPublication remoteVideoTrackPublication)
This method notifies the listener that a
RemoteParticipant has removed a RemoteVideoTrack from this Room . |
void |
onVideoTrackUnsubscribed(RemoteParticipant remoteParticipant,
RemoteVideoTrackPublication remoteVideoTrackPublication,
RemoteVideoTrack remoteVideoTrack)
This method notifies the listener that the
RemoteVideoTrack of the RemoteParticipant has been unsubscribed from. |
void onAudioTrackPublished(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication)
RemoteParticipant
has published a RemoteAudioTrack
to this Room
. The audio of the track is not audible until the
track has been subscribed to.remoteParticipant
- The participant object associated with this audio track.remoteAudioTrackPublication
- The audio track publication.void onAudioTrackUnpublished(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication)
RemoteParticipant
has unpublished a
RemoteAudioTrack
from this Room
.remoteParticipant
- The participant object associated with this audio track.remoteAudioTrackPublication
- The audio track publication.void onAudioTrackSubscribed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull RemoteAudioTrack remoteAudioTrack)
RemoteAudioTrack
of the RemoteParticipant
has been subscribed to. The audio track is audible after this
callback.remoteParticipant
- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication
- The audio track publication.remoteAudioTrack
- The audio track subscribed to.void onAudioTrackSubscriptionFailed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull TwilioException twilioException)
RemoteAudioTrack
failed.remoteParticipant
- The remoteParticipant object associated with the audio track.remoteAudioTrackPublication
- The audio track publication for which subscription
failed.twilioException
- Exception that describes failure.void onAudioTrackUnsubscribed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull RemoteAudioTrack remoteAudioTrack)
RemoteAudioTrack
of the RemoteParticipant
has been unsubscribed from. The track is no longer audible after being
unsubscribed from the audio track.remoteParticipant
- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication
- The audio track publication.remoteAudioTrack
- The audio track unsubscribed from.default void onAudioTrackPublishPriorityChanged(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication, @NonNull TrackPriority trackPriority)
RemoteParticipant
changed the
published priority of the RemoteAudioTrack
.remoteParticipant
- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication
- The audio track publication.trackPriority
- The new track priority.void onVideoTrackPublished(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication)
RemoteParticipant
has published a RemoteVideoTrack
to this Room
. Video frames will not begin flowing until the
video track has been subscribed to.remoteParticipant
- The participant object associated with this video track.remoteVideoTrackPublication
- The video track publication.void onVideoTrackUnpublished(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication)
RemoteParticipant
has removed a RemoteVideoTrack
from this Room
.remoteParticipant
- The participant object associated with this video track.remoteVideoTrackPublication
- The video track publication.void onVideoTrackSubscribed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull RemoteVideoTrack remoteVideoTrack)
RemoteVideoTrack
of the RemoteParticipant
has been subscribed to. Video frames are now flowing and can be
rendered.remoteParticipant
- The remoteParticipant object associated with this video track.remoteVideoTrackPublication
- The video track publication.remoteVideoTrack
- The video track subscribed to.void onVideoTrackSubscriptionFailed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull TwilioException twilioException)
RemoteVideoTrack
failed.remoteParticipant
- The remoteParticipant object associated with the video track.remoteVideoTrackPublication
- The video track publication for which subscription
failed.twilioException
- Exception that describes failure.void onVideoTrackUnsubscribed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull RemoteVideoTrack remoteVideoTrack)
RemoteVideoTrack
of the RemoteParticipant
has been unsubscribed from. Video frames are no longer flowing. All
VideoSink
s of the video track have been removed before receiving this
callback to prevent native memory leaks.remoteParticipant
- The remoteParticipant object associated with this video track.remoteVideoTrackPublication
- The video track publication.remoteVideoTrack
- The video track removed from this room.default void onVideoTrackPublishPriorityChanged(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication, @NonNull TrackPriority trackPriority)
RemoteParticipant
changed the
published priority of the RemoteVideoTrack
.remoteParticipant
- The remoteParticipant object associated with this video track.remoteVideoTrackPublication
- The video track publication.trackPriority
- The new track priority.void onDataTrackPublished(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteDataTrackPublication remoteDataTrackPublication)
RemoteParticipant
has published a RemoteDataTrack
to this Room
.remoteParticipant
- The participant object associated with this data track.remoteDataTrackPublication
- The data track publication.void onDataTrackUnpublished(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteDataTrackPublication remoteDataTrackPublication)
RemoteParticipant
has removed a RemoteDataTrack
from this Room
.remoteParticipant
- The participant object associated with this data track.remoteDataTrackPublication
- The data track publication.void onDataTrackSubscribed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteDataTrackPublication remoteDataTrackPublication, @NonNull RemoteDataTrack remoteDataTrack)
RemoteDataTrack
of the RemoteParticipant
has been subscribed to. Data track messages can be now be received.remoteParticipant
- The remoteParticipant object associated with this data track.remoteDataTrackPublication
- The data track publication.remoteDataTrack
- The data track subscribed to.void onDataTrackSubscriptionFailed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteDataTrackPublication remoteDataTrackPublication, @NonNull TwilioException twilioException)
RemoteDataTrack
failed.remoteParticipant
- The remoteParticipant object associated with the data track.remoteDataTrackPublication
- The data track publication for which subscription
failed.twilioException
- Exception that describes failure.void onDataTrackUnsubscribed(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteDataTrackPublication remoteDataTrackPublication, @NonNull RemoteDataTrack remoteDataTrack)
RemoteDataTrack
of the RemoteParticipant
has been unsubscribed from. Data track messages will no longer be
received.remoteParticipant
- The remoteParticipant object associated with this data track.remoteDataTrackPublication
- The data track publication.remoteDataTrack
- The data track removed from this room.default void onDataTrackPublishPriorityChanged(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteDataTrackPublication remoteDataTrackPublication, @NonNull TrackPriority trackPriority)
RemoteParticipant
changed the
published priority of the RemoteDataTrack
.remoteParticipant
- The remoteParticipant object associated with this data track.remoteDataTrackPublication
- The data track publication.trackPriority
- The new track priority.void onAudioTrackEnabled(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication)
RemoteParticipant
audio track has been
enabled.remoteParticipant
- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication
- The audio track publication.void onAudioTrackDisabled(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteAudioTrackPublication remoteAudioTrackPublication)
RemoteParticipant
audio track has been
disabled.remoteParticipant
- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication
- The audio track publication.void onVideoTrackEnabled(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication)
RemoteParticipant
video track has been
enabled.remoteParticipant
- The remoteParticipant object associated with this audio track.remoteVideoTrackPublication
- The video track publication.void onVideoTrackDisabled(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrackPublication remoteVideoTrackPublication)
RemoteParticipant
video track has been
disabled.remoteParticipant
- The remoteParticipant object associated with this audio track.remoteVideoTrackPublication
- The video track publication.default void onVideoTrackSwitchedOn(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrack remoteVideoTrack)
RemoteVideoTrack
that was
switched off is now switched back on based on the bandwidth allocation algorithm. Video
will be received for the RemoteVideoTrack
until it is switched off.remoteParticipant
- The remoteParticipant object associated with the video track.remoteVideoTrack
- The subscribed remote video track.default void onVideoTrackSwitchedOff(@NonNull RemoteParticipant remoteParticipant, @NonNull RemoteVideoTrack remoteVideoTrack)
RemoteVideoTrack
is switched
off based on the bandwidth allocation algorithm. Video will not be received for the
RemoteVideoTrack
until it is switched back on.remoteParticipant
- The remoteParticipant object associated with the video track.remoteVideoTrack
- The subscribed remote video track.default void onNetworkQualityLevelChanged(@NonNull RemoteParticipant remoteParticipant, @NonNull NetworkQualityLevel networkQualityLevel)
RemoteParticipant
's NetworkQualityLevel
has changed.remoteParticipant
- The RemoteParticipant
.networkQualityLevel
- The new NetworkQualityLevel
.7.0.0