Mercurial > jmeCapture
annotate src/com/aurellem/capture/examples/HelloVideoRecording.java @ 49:121b6d7e4d3f
more friendly AppSettings handling
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Dec 2011 13:22:27 -0600 |
parents | 74b53dfe369e |
children | 8a091a5f48fa |
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@47 | 8 import com.aurellem.capture.Capture; |
rlm@39 | 9 import com.aurellem.capture.IsoTimer; |
rlm@47 | 10 import com.jme3.app.Application; |
rlm@39 | 11 |
rlm@45 | 12 public class HelloVideoRecording { |
rlm@39 | 13 |
rlm@47 | 14 public static void main(String[] ignore) throws IOException { |
rlm@47 | 15 Application app = new HelloLoop(); |
rlm@47 | 16 File video = File.createTempFile("JME-simple-video", ".avi"); |
rlm@47 | 17 app.setTimer(new IsoTimer(60)); |
rlm@47 | 18 Capture.captureVideo(app, video); |
rlm@47 | 19 app.start(); |
rlm@47 | 20 System.out.println(video.getCanonicalPath()); |
rlm@47 | 21 } |
rlm@39 | 22 } |