comparison src/com/aurellem/capture/examples/HelloVideo.java @ 39:784a3f4e6202

updating capture-video
author Robert McIntyre <rlm@mit.edu>
date Thu, 03 Nov 2011 16:00:46 -0700
parents
children
comparison
equal deleted inserted replaced
38:adeb88787645 39:784a3f4e6202
1 package com.aurellem.capture.examples;
2
3 import java.io.File;
4 import java.io.IOException;
5
6 import jme3test.helloworld.HelloLoop;
7
8 import com.aurellem.capture.IsoTimer;
9 import com.aurellem.capture.Capture;
10 import com.jme3.app.SimpleApplication;
11
12 public class HelloVideo {
13
14 public static void main(String[] ignore) throws IOException {
15 SimpleApplication app = new HelloLoop();
16 File video = File.createTempFile("helloVideo", ".avi");
17 app.setTimer(new IsoTimer(60));
18 Capture.captureVideo(app, video);
19 app.start();
20 System.out.println(video.getCanonicalPath());
21 }
22 }