Class VideoOutput

  • All Implemented Interfaces:
    IOutput, IVideoRecorder, java.io.Closeable, java.lang.AutoCloseable

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

      • VideoOutput

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

      • 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:
        ContentMode
      • setWatermark

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

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