public class VideoTrack extends Object
Modifier and Type | Method and Description |
---|---|
void |
addRenderer(VideoRenderer videoRenderer)
Add a video renderer to get video from the video track.
|
List<VideoRenderer> |
getRenderers()
The list of renderers receiving video from this video track.
|
String |
getTrackId()
This video track id.
|
boolean |
isEnabled()
Check if this video track is enabled.
|
void |
removeRenderer(VideoRenderer videoRenderer)
Remove a video renderer to stop receiving video from the video track.
|
public void addRenderer(VideoRenderer videoRenderer)
videoRenderer
- video renderer that receives video.public void removeRenderer(VideoRenderer videoRenderer)
videoRenderer
- the video renderer that should no longer receives video.public List<VideoRenderer> getRenderers()
public String getTrackId()
public boolean isEnabled()