rlm@39: package com.aurellem.capture.video; rlm@39: rlm@39: import java.awt.image.BufferedImage; rlm@39: rlm@39: public interface VideoRecorder{ rlm@39: rlm@39: /** rlm@39: * Write this image to video, disk, etc. rlm@39: * @param image the image to write rlm@39: */ rlm@39: void record(BufferedImage image); rlm@39: rlm@39: /** rlm@53: * Stop recording temporarily. The recording can be started again rlm@39: * with start() rlm@39: */ rlm@39: void pause(); rlm@39: rlm@39: /** rlm@53: * Start the recording. rlm@39: */ rlm@39: void start(); rlm@39: rlm@39: /** rlm@53: * Closes the video file, writing appropriate headers, trailers, etc. rlm@39: * After this is called, no more recording can be done. rlm@39: */ rlm@39: void finish(); rlm@39: }