Package tvi.webrtc

Class VideoFileRenderer

All Implemented Interfaces:

public class VideoFileRenderer extends Object implements VideoSink
Can be used to save the video frames to file.
  • Constructor Details

  • Method Details

    • onFrame

      public void onFrame(VideoFrame frame)
      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
    • release

      public void release()
      Release all resources. All already posted frames will be rendered first.