Class VideoSink

java.lang.Object
com.twilio.video.VideoSink
All Implemented Interfaces:
VideoSink

public class VideoSink extends Object implements VideoSink
VideoSink implements webrtc.VideoSink interface. Currently it is used for detecting changes in captured frame's parameters such as changes in width, height, and rotation. When these changes are detected, it notifies the VideoCapturerObserver.
  • Constructor Details

  • Method Details

    • resetVideoCapturerObserver

      public void resetVideoCapturerObserver()
    • onFrame

      public void onFrame(VideoFrame videoFrame)
      Description copied from interface: VideoSink
      Implementations should call frame.retain() if they need to hold a reference to the frame after this function returns. Each call to retain() should be followed by a call to frame.release() when the reference is no longer needed.
      Specified by:
      onFrame in interface VideoSink