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 . |
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 . |
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. |
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 . |
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. |
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(RemoteParticipant remoteParticipant, 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(RemoteParticipant remoteParticipant, 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(RemoteParticipant remoteParticipant, RemoteAudioTrackPublication remoteAudioTrackPublication, 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(RemoteParticipant remoteParticipant, RemoteAudioTrackPublication remoteAudioTrackPublication, 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(RemoteParticipant remoteParticipant, RemoteAudioTrackPublication remoteAudioTrackPublication, 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.void onVideoTrackPublished(RemoteParticipant remoteParticipant, 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(RemoteParticipant remoteParticipant, 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(RemoteParticipant remoteParticipant, RemoteVideoTrackPublication remoteVideoTrackPublication, 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(RemoteParticipant remoteParticipant, RemoteVideoTrackPublication remoteVideoTrackPublication, 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(RemoteParticipant remoteParticipant, RemoteVideoTrackPublication remoteVideoTrackPublication, RemoteVideoTrack remoteVideoTrack)
RemoteVideoTrack
of the RemoteParticipant
has been unsubscribed from. Video frames are no longer flowing. All
VideoRenderer
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.void onDataTrackPublished(RemoteParticipant remoteParticipant, 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(RemoteParticipant remoteParticipant, 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(RemoteParticipant remoteParticipant, RemoteDataTrackPublication remoteDataTrackPublication, 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(RemoteParticipant remoteParticipant, RemoteDataTrackPublication remoteDataTrackPublication, 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(RemoteParticipant remoteParticipant, RemoteDataTrackPublication remoteDataTrackPublication, 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.void onAudioTrackEnabled(RemoteParticipant remoteParticipant, RemoteAudioTrackPublication remoteAudioTrackPublication)
RemoteParticipant
audio track has been
enabled.remoteParticipant
- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication
- The audio track publication.void onAudioTrackDisabled(RemoteParticipant remoteParticipant, RemoteAudioTrackPublication remoteAudioTrackPublication)
RemoteParticipant
audio track has been
disabled.remoteParticipant
- The remoteParticipant object associated with this audio track.remoteAudioTrackPublication
- The audio track publication.void onVideoTrackEnabled(RemoteParticipant remoteParticipant, RemoteVideoTrackPublication remoteVideoTrackPublication)
RemoteParticipant
video track has been
enabled.remoteParticipant
- The remoteParticipant object associated with this audio track.remoteVideoTrackPublication
- The video track publication.void onVideoTrackDisabled(RemoteParticipant remoteParticipant, RemoteVideoTrackPublication remoteVideoTrackPublication)
RemoteParticipant
video track has been
disabled.remoteParticipant
- The remoteParticipant object associated with this audio track.remoteVideoTrackPublication
- The video track publication.3.2.2