annotate src/com/aurellem/capture/examples/HelloVideoRecording.java @ 45:5cd9e6c65a93

system is shaping up
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Dec 2011 12:44:23 -0600
parents src/com/aurellem/capture/examples/HelloVideo.java@784a3f4e6202
children 74b53dfe369e
rev   line source
rlm@39 1 package com.aurellem.capture.examples;
rlm@39 2
rlm@39 3 import java.io.File;
rlm@39 4 import java.io.IOException;
rlm@39 5
rlm@39 6 import jme3test.helloworld.HelloLoop;
rlm@39 7
rlm@39 8 import com.aurellem.capture.IsoTimer;
rlm@39 9 import com.aurellem.capture.Capture;
rlm@39 10 import com.jme3.app.SimpleApplication;
rlm@39 11
rlm@45 12 public class HelloVideoRecording {
rlm@39 13
rlm@39 14 public static void main(String[] ignore) throws IOException {
rlm@39 15 SimpleApplication app = new HelloLoop();
rlm@39 16 File video = File.createTempFile("helloVideo", ".avi");
rlm@39 17 app.setTimer(new IsoTimer(60));
rlm@39 18 Capture.captureVideo(app, video);
rlm@39 19 app.start();
rlm@39 20 System.out.println(video.getCanonicalPath());
rlm@39 21 }
rlm@39 22 }