Mercurial > jmeCapture
comparison src/com/aurellem/capture/examples/HelloVideoRecording.java @ 47:74b53dfe369e
stressing similiarity between audio and video capture
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Dec 2011 12:48:40 -0600 |
parents | 5cd9e6c65a93 |
children | 8a091a5f48fa |
comparison
equal
deleted
inserted
replaced
46:fc71e797f4fa | 47:74b53dfe369e |
---|---|
3 import java.io.File; | 3 import java.io.File; |
4 import java.io.IOException; | 4 import java.io.IOException; |
5 | 5 |
6 import jme3test.helloworld.HelloLoop; | 6 import jme3test.helloworld.HelloLoop; |
7 | 7 |
8 import com.aurellem.capture.Capture; | |
8 import com.aurellem.capture.IsoTimer; | 9 import com.aurellem.capture.IsoTimer; |
9 import com.aurellem.capture.Capture; | 10 import com.jme3.app.Application; |
10 import com.jme3.app.SimpleApplication; | |
11 | 11 |
12 public class HelloVideoRecording { | 12 public class HelloVideoRecording { |
13 | 13 |
14 public static void main(String[] ignore) throws IOException { | 14 public static void main(String[] ignore) throws IOException { |
15 SimpleApplication app = new HelloLoop(); | 15 Application app = new HelloLoop(); |
16 File video = File.createTempFile("helloVideo", ".avi"); | 16 File video = File.createTempFile("JME-simple-video", ".avi"); |
17 app.setTimer(new IsoTimer(60)); | 17 app.setTimer(new IsoTimer(60)); |
18 Capture.captureVideo(app, video); | 18 Capture.captureVideo(app, video); |
19 app.start(); | 19 app.start(); |
20 System.out.println(video.getCanonicalPath()); | 20 System.out.println(video.getCanonicalPath()); |
21 } | 21 } |
22 } | 22 } |