public abstract class VideoTrack extends java.lang.Object implements Track
Modifier and Type | Method and 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.
|
public void addSink(@NonNull VideoSink videoSink)
videoSink
- video sink that receives video.public void removeSink(@NonNull VideoSink videoSink)
videoSink
- the video sink that should no longer receives video.@NonNull public java.util.List<VideoSink> getSinks()
public boolean isEnabled()
6.0.0