com.aurellem.capture.video
Class FileVideoRecorder

java.lang.Object
  extended by com.aurellem.capture.video.AbstractVideoRecorder
      extended by com.aurellem.capture.video.FileVideoRecorder
All Implemented Interfaces:
VideoRecorder, com.jme3.app.state.AppState, com.jme3.post.SceneProcessor

public class FileVideoRecorder
extends AbstractVideoRecorder


Constructor Summary
FileVideoRecorder(java.io.File output)
           
 
Method Summary
 void finish()
          Closes the video file, writing appropriate headers, trailers, etc.
 void record(java.awt.image.BufferedImage rawFrame)
          Write this image to video, disk, etc.
 
Methods inherited from class com.aurellem.capture.video.AbstractVideoRecorder
cleanup, getFps, initialize, initialize, isEnabled, isInitialized, pause, postFrame, postQueue, postRender, preFrame, render, reshape, setEnabled, setFps, start, stateAttached, stateDetached, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileVideoRecorder

public FileVideoRecorder(java.io.File output)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

record

public void record(java.awt.image.BufferedImage rawFrame)
Description copied from interface: VideoRecorder
Write this image to video, disk, etc.

Parameters:
rawFrame - the image to write

finish

public void finish()
Description copied from interface: VideoRecorder
Closes the video file, writing appropriate headers, trailers, etc. After this is called, no more recording can be done.