Package com.twilio.video
Interface VideoTrackPublication
-
- All Superinterfaces:
TrackPublication
- All Known Implementing Classes:
LocalVideoTrackPublication,RemoteVideoTrackPublication
public interface VideoTrackPublication extends TrackPublication
A published video track represents a video track that has been shared with aRoom.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VideoTrackgetVideoTrack()LocalVideoTrackPublicationandRemoteVideoTrackPublicationextendVideoTrackPublicationand each interface implements getVideoTrack with different nullability behavior.-
Methods inherited from interface com.twilio.video.TrackPublication
getTrackName, getTrackSid, isTrackEnabled
-
-
-
-
Method Detail
-
getVideoTrack
@Nullable VideoTrack 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:
LocalVideoTrackPublication,RemoteVideoTrackPublication
-
-