Package com.twilio.video
Class VideoTrack
java.lang.Object
com.twilio.video.VideoTrack
- All Implemented Interfaces:
Track
- Direct Known Subclasses:
LocalVideoTrack
,RemoteVideoTrack
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a video sink to receive frames from the video track.protected VideoFrame
constructBlackFrame
(int width, int height) getName()
Returns the video track name.getSinks()
The list of sinks receiving video from this video track.boolean
Check if this video track is enabled.void
removeSink
(VideoSink videoSink) Remove a video sink to stop receiving video from the video track.
-
Method Details
-
addSink
Add a video sink to receive frames from the video track.- Parameters:
videoSink
- video sink that receives video.
-
removeSink
Remove a video sink to stop receiving video from the video track.- Parameters:
videoSink
- the video sink that should no longer receive video.
-
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. -
getName
Returns the video track name. A pseudo random string is returned if no track name was specified. -
constructBlackFrame
-