Class VideoTrack

All Implemented Interfaces:
Direct Known Subclasses:
LocalVideoTrack, RemoteVideoTrack

public abstract class VideoTrack extends Object implements Track
  • Method Details

    • addSink

      public void addSink(@NonNull VideoSink videoSink)
      Add a video sink to receive frames from the video track.
      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.
      videoSink - the video sink that should no longer receive video.
    • getSinks

      @NonNull public 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.
      Specified by:
      isEnabled in interface Track
      true if track is enabled.
    • getName

      @NonNull public String getName()
      Returns the video track name. A pseudo random string is returned if no track name was specified.
      Specified by:
      getName in interface Track
    • constructBlackFrame

      protected VideoFrame constructBlackFrame(int width, int height)