Package com.twilio.video
Interface LocalParticipant.Listener
-
- Enclosing class:
- LocalParticipant
public static interface LocalParticipant.ListenerInterface that providesLocalParticipantevents.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidonAudioTrackPublicationFailed(LocalParticipant localParticipant, LocalAudioTrack localAudioTrack, TwilioException twilioException)This method notifies the listener that theLocalParticipantfailed to publish aLocalAudioTrackto aRoom.voidonAudioTrackPublished(LocalParticipant localParticipant, LocalAudioTrackPublication localAudioTrackPublication)This method notifies the listener that aLocalAudioTrackhas been shared to aRoom.voidonDataTrackPublicationFailed(LocalParticipant localParticipant, LocalDataTrack localDataTrack, TwilioException twilioException)This method notifies the listener that theLocalParticipantfailed to publish aLocalDataTrackto aRoom.voidonDataTrackPublished(LocalParticipant localParticipant, LocalDataTrackPublication localDataTrackPublication)This method notifies the listener that aLocalDataTrackhas been shared to aRoom.default voidonNetworkQualityLevelChanged(LocalParticipant localParticipant, NetworkQualityLevel networkQualityLevel)This method notifies the listener that theLocalParticipant'sNetworkQualityLevelhas changed.voidonVideoTrackPublicationFailed(LocalParticipant localParticipant, LocalVideoTrack localVideoTrack, TwilioException twilioException)This method notifies the listener that theLocalParticipantfailed to publish aLocalVideoTrackto aRoom.voidonVideoTrackPublished(LocalParticipant localParticipant, LocalVideoTrackPublication localVideoTrackPublication)This method notifies the listener that aLocalVideoTrackhas been shared to aRoom.
-
-
-
Method Detail
-
onAudioTrackPublished
void onAudioTrackPublished(@NonNull LocalParticipant localParticipant, @NonNull LocalAudioTrackPublication localAudioTrackPublication)This method notifies the listener that aLocalAudioTrackhas been shared to aRoom. Note: If aLocalAudioTrackwas provided inConnectOptionsthis 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 theLocalParticipantfailed to publish aLocalAudioTrackto 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 aLocalVideoTrackhas been shared to aRoom. Note: If aLocalVideoTrackwas provided inConnectOptionsthis 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 theLocalParticipantfailed to publish aLocalVideoTrackto 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 aLocalDataTrackhas 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 theLocalParticipantfailed to publish aLocalDataTrackto 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'sNetworkQualityLevelhas changed.- Parameters:
localParticipant- TheLocalParticipant.networkQualityLevel- The newNetworkQualityLevel.
-
-