Package com.twilio.video
Interface VideoTrackPublication
- All Superinterfaces:
TrackPublication
- All Known Implementing Classes:
LocalVideoTrackPublication,RemoteVideoTrackPublication
A published video track represents a video track that has been shared with a
Room.-
Method Summary
Modifier and TypeMethodDescriptionLocalVideoTrackPublicationandRemoteVideoTrackPublicationextendVideoTrackPublicationand each interface implements getVideoTrack with different nullability behavior.Methods inherited from interface com.twilio.video.TrackPublication
getTrackName, getTrackSid, isTrackEnabled
-
Method Details
-
getVideoTrack
LocalVideoTrackPublicationandRemoteVideoTrackPublicationextendVideoTrackPublicationand each interface implements getVideoTrack with different nullability behavior.LocalVideoTrackPublication.getVideoTrack()is annotated as @NonNull andRemoteVideoTrackPublication.getVideoTrack()is annotated as @Nullable.This method is marked as @Nullable because at least one of the subclasses returns null.
- Returns:
- the published video track.
- See Also:
-