Package com.twilio.video
Interface AudioTrackPublication
-
- All Superinterfaces:
TrackPublication
- All Known Implementing Classes:
LocalAudioTrackPublication
,RemoteAudioTrackPublication
public interface AudioTrackPublication extends TrackPublication
A published audio track represents an audio track that has been shared with aRoom
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AudioTrack
getAudioTrack()
LocalAudioTrackPublication
andRemoteAudioTrackPublication
extendAudioTrackPublication
and each interface implements getAudioTrack with different nullability behavior.-
Methods inherited from interface com.twilio.video.TrackPublication
getTrackName, getTrackSid, isTrackEnabled
-
-
-
-
Method Detail
-
getAudioTrack
@Nullable AudioTrack getAudioTrack()
LocalAudioTrackPublication
andRemoteAudioTrackPublication
extendAudioTrackPublication
and each interface implements getAudioTrack with different nullability behavior.LocalAudioTrackPublication.getAudioTrack()
is annotated as @NonNull andRemoteAudioTrackPublication.getAudioTrack()
is annotated as @Nullable.This method is marked as @Nullable because at least one of the subclasses returns null.
- Returns:
- the published audio track.
- See Also:
LocalAudioTrackPublication
,RemoteAudioTrackPublication
-
-