Class VideoSink

  • All Implemented Interfaces:
    VideoSink

    public class VideoSink
    extends java.lang.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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onFrame​(VideoFrame videoFrame)
      Implementations should call frame.retain() if they need to hold a reference to the frame after this function returns.
      void resetVideoCapturerObserver()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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