public static interface LocalParticipant.Listener
LocalParticipant
events.Modifier and Type | Method and Description |
---|---|
void |
onAudioTrackPublicationFailed(LocalParticipant localParticipant,
LocalAudioTrack localAudioTrack,
TwilioException twilioException)
This method notifies the listener that the
LocalParticipant failed to publish a
LocalAudioTrack to a Room . |
void |
onAudioTrackPublished(LocalParticipant localParticipant,
LocalAudioTrackPublication localAudioTrackPublication)
This method notifies the listener that a
LocalAudioTrack has been shared to a
Room . |
void |
onDataTrackPublicationFailed(LocalParticipant localParticipant,
LocalDataTrack localDataTrack,
TwilioException twilioException)
This method notifies the listener that the
LocalParticipant failed to publish a
LocalDataTrack to a Room . |
void |
onDataTrackPublished(LocalParticipant localParticipant,
LocalDataTrackPublication localDataTrackPublication)
This method notifies the listener that a
LocalDataTrack has been shared to a
Room . |
default void |
onNetworkQualityLevelChanged(LocalParticipant localParticipant,
NetworkQualityLevel networkQualityLevel)
This method notifies the listener that the
LocalParticipant 's NetworkQualityLevel has changed. |
void |
onVideoTrackPublicationFailed(LocalParticipant localParticipant,
LocalVideoTrack localVideoTrack,
TwilioException twilioException)
This method notifies the listener that the
LocalParticipant failed to publish a
LocalVideoTrack to a Room . |
void |
onVideoTrackPublished(LocalParticipant localParticipant,
LocalVideoTrackPublication localVideoTrackPublication)
This method notifies the listener that a
LocalVideoTrack has been shared to a
Room . |
void onAudioTrackPublished(@NonNull LocalParticipant localParticipant, @NonNull LocalAudioTrackPublication localAudioTrackPublication)
LocalAudioTrack
has been shared to a
Room
. Note: If a LocalAudioTrack
was provided in ConnectOptions
this callback will not be triggered because the track is published prior to Room.Listener.onConnected(com.twilio.video.Room)
being raised.localParticipant
- The local participant that published the audio track.localAudioTrackPublication
- The published local audio track.void onAudioTrackPublicationFailed(@NonNull LocalParticipant localParticipant, @NonNull LocalAudioTrack localAudioTrack, @NonNull TwilioException twilioException)
LocalParticipant
failed to publish a
LocalAudioTrack
to a Room
.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.void onVideoTrackPublished(@NonNull LocalParticipant localParticipant, @NonNull LocalVideoTrackPublication localVideoTrackPublication)
LocalVideoTrack
has been shared to a
Room
. Note: If a LocalVideoTrack
was provided in ConnectOptions
this callback will not be triggered because the track is published prior to Room.Listener.onConnected(com.twilio.video.Room)
being raised.localParticipant
- The local participant that published the video track.localVideoTrackPublication
- The published local video track.void onVideoTrackPublicationFailed(@NonNull LocalParticipant localParticipant, @NonNull LocalVideoTrack localVideoTrack, @NonNull TwilioException twilioException)
LocalParticipant
failed to publish a
LocalVideoTrack
to a Room
.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.void onDataTrackPublished(@NonNull LocalParticipant localParticipant, @NonNull LocalDataTrackPublication localDataTrackPublication)
LocalDataTrack
has been shared to a
Room
.localParticipant
- The local participant that published the data track.localDataTrackPublication
- The published local data track.void onDataTrackPublicationFailed(@NonNull LocalParticipant localParticipant, @NonNull LocalDataTrack localDataTrack, @NonNull TwilioException twilioException)
LocalParticipant
failed to publish a
LocalDataTrack
to a Room
.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.default void onNetworkQualityLevelChanged(@NonNull LocalParticipant localParticipant, @NonNull NetworkQualityLevel networkQualityLevel)
LocalParticipant
's NetworkQualityLevel
has changed.localParticipant
- The LocalParticipant
.networkQualityLevel
- The new NetworkQualityLevel
.6.4.1