Package com.twilio.video
Interface LocalParticipant.Listener
-
- Enclosing class:
- LocalParticipant
public static interface LocalParticipant.Listener
Interface that providesLocalParticipant
events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
onAudioTrackPublicationFailed(LocalParticipant localParticipant, LocalAudioTrack localAudioTrack, TwilioException twilioException)
This method notifies the listener that theLocalParticipant
failed to publish aLocalAudioTrack
to aRoom
.void
onAudioTrackPublished(LocalParticipant localParticipant, LocalAudioTrackPublication localAudioTrackPublication)
This method notifies the listener that aLocalAudioTrack
has been shared to aRoom
.void
onDataTrackPublicationFailed(LocalParticipant localParticipant, LocalDataTrack localDataTrack, TwilioException twilioException)
This method notifies the listener that theLocalParticipant
failed to publish aLocalDataTrack
to aRoom
.void
onDataTrackPublished(LocalParticipant localParticipant, LocalDataTrackPublication localDataTrackPublication)
This method notifies the listener that aLocalDataTrack
has been shared to aRoom
.default void
onNetworkQualityLevelChanged(LocalParticipant localParticipant, NetworkQualityLevel networkQualityLevel)
This method notifies the listener that theLocalParticipant
'sNetworkQualityLevel
has changed.void
onVideoTrackPublicationFailed(LocalParticipant localParticipant, LocalVideoTrack localVideoTrack, TwilioException twilioException)
This method notifies the listener that theLocalParticipant
failed to publish aLocalVideoTrack
to aRoom
.void
onVideoTrackPublished(LocalParticipant localParticipant, LocalVideoTrackPublication localVideoTrackPublication)
This method notifies the listener that aLocalVideoTrack
has been shared to aRoom
.
-
-
-
Method Detail
-
onAudioTrackPublished
void onAudioTrackPublished(@NonNull LocalParticipant localParticipant, @NonNull LocalAudioTrackPublication localAudioTrackPublication)
This method notifies the listener that aLocalAudioTrack
has been shared to aRoom
. Note: If aLocalAudioTrack
was provided inConnectOptions
this callback will not be triggered because the track is published prior toRoom.Listener.onConnected(com.twilio.video.Room)
being raised.- Parameters:
localParticipant
- The local participant that published the audio track.localAudioTrackPublication
- The published local audio track.
-
onAudioTrackPublicationFailed
void onAudioTrackPublicationFailed(@NonNull LocalParticipant localParticipant, @NonNull LocalAudioTrack localAudioTrack, @NonNull TwilioException twilioException)
This method notifies the listener that theLocalParticipant
failed to publish aLocalAudioTrack
to aRoom
.- Parameters:
localParticipant
- The local participant that failed to publish the audio track.localAudioTrack
- The local audio track that could not be published.twilioException
- An exception explaining why the local participant failed to publish the local audio track.
-
onVideoTrackPublished
void onVideoTrackPublished(@NonNull LocalParticipant localParticipant, @NonNull LocalVideoTrackPublication localVideoTrackPublication)
This method notifies the listener that aLocalVideoTrack
has been shared to aRoom
. Note: If aLocalVideoTrack
was provided inConnectOptions
this callback will not be triggered because the track is published prior toRoom.Listener.onConnected(com.twilio.video.Room)
being raised.- Parameters:
localParticipant
- The local participant that published the video track.localVideoTrackPublication
- The published local video track.
-
onVideoTrackPublicationFailed
void onVideoTrackPublicationFailed(@NonNull LocalParticipant localParticipant, @NonNull LocalVideoTrack localVideoTrack, @NonNull TwilioException twilioException)
This method notifies the listener that theLocalParticipant
failed to publish aLocalVideoTrack
to aRoom
.- Parameters:
localParticipant
- The local participant that failed to publish the video track.localVideoTrack
- The local video track that could not be published.twilioException
- An exception explaining why the local participant failed to publish the local video track.
-
onDataTrackPublished
void onDataTrackPublished(@NonNull LocalParticipant localParticipant, @NonNull LocalDataTrackPublication localDataTrackPublication)
This method notifies the listener that aLocalDataTrack
has been shared to aRoom
.- Parameters:
localParticipant
- The local participant that published the data track.localDataTrackPublication
- The published local data track.
-
onDataTrackPublicationFailed
void onDataTrackPublicationFailed(@NonNull LocalParticipant localParticipant, @NonNull LocalDataTrack localDataTrack, @NonNull TwilioException twilioException)
This method notifies the listener that theLocalParticipant
failed to publish aLocalDataTrack
to aRoom
.- Parameters:
localParticipant
- The local participant that failed to publish the data track.localDataTrack
- The local data track that could not be published.twilioException
- An exception explaining why the local participant failed to publish the local data track.
-
onNetworkQualityLevelChanged
default void onNetworkQualityLevelChanged(@NonNull LocalParticipant localParticipant, @NonNull NetworkQualityLevel networkQualityLevel)
This method notifies the listener that theLocalParticipant
'sNetworkQualityLevel
has changed.- Parameters:
localParticipant
- TheLocalParticipant
.networkQualityLevel
- The newNetworkQualityLevel
.
-
-