Mercurial > jmeCapture
diff 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 |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/com/aurellem/capture/examples/HelloVideoRecording.java Sat Dec 03 12:44:23 2011 -0600 1.3 @@ -0,0 +1,22 @@ 1.4 +package com.aurellem.capture.examples; 1.5 + 1.6 +import java.io.File; 1.7 +import java.io.IOException; 1.8 + 1.9 +import jme3test.helloworld.HelloLoop; 1.10 + 1.11 +import com.aurellem.capture.IsoTimer; 1.12 +import com.aurellem.capture.Capture; 1.13 +import com.jme3.app.SimpleApplication; 1.14 + 1.15 +public class HelloVideoRecording { 1.16 + 1.17 + public static void main(String[] ignore) throws IOException { 1.18 + SimpleApplication app = new HelloLoop(); 1.19 + File video = File.createTempFile("helloVideo", ".avi"); 1.20 + app.setTimer(new IsoTimer(60)); 1.21 + Capture.captureVideo(app, video); 1.22 + app.start(); 1.23 + System.out.println(video.getCanonicalPath()); 1.24 + } 1.25 +}