Class VideoOutput

All Implemented Interfaces:
IOutput, IVideoRecorder, Closeable, AutoCloseable

public class VideoOutput extends VideoFileRecorder implements IOutput
Render video to the offscreen surface and save it to a video file
  • Constructor Details

    • VideoOutput

      public VideoOutput()
      Create a new instance of the VideoOutput
  • Method Details

    • setContentMode

      public void setContentMode(ContentMode contentMode)
      Set new content mode. By default the content mode is set to ASPECT_FILL
      Parameters:
      contentMode - rendering logic when the size of the surface and size of the frame are different
      See Also:
    • setWatermark

      public void setWatermark(WatermarkInfo watermarkInfo)
      Set watermark to apply on recorded video.
      Parameters:
      watermarkInfo - watermark image and information how to apply it
    • present

      public void present(IRenderTargetPresentable renderTarget)
      Drawing the next frame and adding it to the video file.
      Specified by:
      present in interface IOutput
    • close

      public void close()
      Description copied from class: VideoFileRecorder
      Close an instance and free resources
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class VideoFileRecorder