Mercurial > jmeCapture
comparison src/com/aurellem/capture/examples/HelloVideoRecording.java @ 50:8a091a5f48fa
documentation for basic use case
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Dec 2011 13:35:13 -0600 |
parents | 74b53dfe369e |
children | afc437f637bd |
comparison
equal
deleted
inserted
replaced
49:121b6d7e4d3f | 50:8a091a5f48fa |
---|---|
7 | 7 |
8 import com.aurellem.capture.Capture; | 8 import com.aurellem.capture.Capture; |
9 import com.aurellem.capture.IsoTimer; | 9 import com.aurellem.capture.IsoTimer; |
10 import com.jme3.app.Application; | 10 import com.jme3.app.Application; |
11 | 11 |
12 /** Recording Video from your Application is simple. If all you | |
13 * want to do is record Video, then follow the following steps. | |
14 * | |
15 * 1.) Set the Application's timer to an IsoTimer. The framerate of | |
16 * the IsoTimer will determine the framerate of the resulting video. | |
17 * | |
18 * | |
19 * | |
20 * 2.) Call Capture.captureVideo(yourApplication, target-file) before | |
21 * calling yourApplication.start() | |
22 * | |
23 * That's it! If you have any comments/problems, please PM me on the | |
24 * jMonkeyEngine forms. My username is bortreb. | |
25 * | |
26 * @author Robert McIntyre | |
27 */ | |
12 public class HelloVideoRecording { | 28 public class HelloVideoRecording { |
13 | 29 |
14 public static void main(String[] ignore) throws IOException { | 30 public static void main(String[] ignore) throws IOException { |
15 Application app = new HelloLoop(); | 31 Application app = new HelloLoop(); |
16 File video = File.createTempFile("JME-simple-video", ".avi"); | 32 File video = File.createTempFile("JME-simple-video", ".avi"); |