Package com.twilio.video
Class VideoTrack
- java.lang.Object
-
- com.twilio.video.VideoTrack
-
- All Implemented Interfaces:
Track
- Direct Known Subclasses:
LocalVideoTrack
,RemoteVideoTrack
public abstract class VideoTrack extends java.lang.Object implements Track
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSink(VideoSink videoSink)
Add a video sink to receive frames from the video track.java.lang.String
getName()
Returns the video track name.java.util.List<VideoSink>
getSinks()
The list of sinks receiving video from this video track.boolean
isEnabled()
Check if this video track is enabled.void
removeSink(VideoSink videoSink)
Remove a video sink to stop receiving video from the video track.
-
-
-
Method Detail
-
addSink
public void addSink(@NonNull VideoSink videoSink)
Add a video sink to receive frames from the video track.- Parameters:
videoSink
- video sink that receives video.
-
removeSink
public void removeSink(@NonNull VideoSink videoSink)
Remove a video sink to stop receiving video from the video track.- Parameters:
videoSink
- the video sink that should no longer receives video.
-
getSinks
@NonNull public java.util.List<VideoSink> getSinks()
The list of sinks receiving video from this video track. An empty list will be returned if the video track has been released.
-
isEnabled
public boolean isEnabled()
Check if this video track is enabled.
-
-