Package 

Class VideoTrack

  • All Implemented Interfaces:
    com.twilio.video.Track

    
    public abstract class VideoTrack
     implements Track
                        
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String name
      private boolean isEnabled
    • Method Summary

      Modifier and Type Method Description
      String getName() Returns the video track name.
      boolean isEnabled() Check if this video track is enabled.
      synchronized void addSink(@NonNull() VideoSink videoSink) Add a video sink to receive frames from the video track.
      synchronized void removeSink(@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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
      • getSinks

        @NonNull() synchronized List<VideoSink> getSinks()

        The list of sinks receiving video from this video track. An empty list will be returned ifthe video track has been released.