-
- All Implemented Interfaces:
-
com.twilio.video.Track
public abstract class VideoTrack implements Track
-
-
Method Summary
Modifier and Type Method Description StringgetName()Returns the video track name. booleanisEnabled()Check if this video track is enabled. synchronized voidaddSink(@NonNull() VideoSink videoSink)Add a video sink to receive frames from the video track. synchronized voidremoveSink(@NonNull() VideoSink videoSink)Remove a video sink to stop receiving video from the video track. synchronized List<VideoSink>getSinks()The list of sinks receiving video from this video track. -
-
Method Detail
-
getName
@NonNull() String getName()
Returns the video track name. A pseudo random string is returned if no track name wasspecified.
-
isEnabled
boolean isEnabled()
Check if this video track is enabled.
-
addSink
synchronized void addSink(@NonNull() VideoSink videoSink)
Add a video sink to receive frames from the video track.
- Parameters:
videoSink- video sink that receives video.
-
removeSink
synchronized 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 receive video.
-
-
-
-