rlm@39: package com.aurellem.capture.examples; rlm@39: rlm@39: import java.io.File; rlm@39: import java.io.IOException; rlm@39: rlm@39: import jme3test.helloworld.HelloLoop; rlm@39: rlm@39: import com.aurellem.capture.IsoTimer; rlm@39: import com.aurellem.capture.Capture; rlm@39: import com.jme3.app.SimpleApplication; rlm@39: rlm@45: public class HelloVideoRecording { rlm@39: rlm@39: public static void main(String[] ignore) throws IOException { rlm@39: SimpleApplication app = new HelloLoop(); rlm@39: File video = File.createTempFile("helloVideo", ".avi"); rlm@39: app.setTimer(new IsoTimer(60)); rlm@39: Capture.captureVideo(app, video); rlm@39: app.start(); rlm@39: System.out.println(video.getCanonicalPath()); rlm@39: } rlm@39: }