Mercurial > jmeCapture
annotate src/com/aurellem/capture/examples/HelloVideo.java @ 43:2f129118e2d6
removed old files and moved natives unpacking to the AudioRenderer
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Wed, 30 Nov 2011 06:32:36 -0700 |
parents | 784a3f4e6202 |
children |
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@39 | 12 public class HelloVideo { |
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 } |