diff 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
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/com/aurellem/capture/examples/HelloVideo.java	Thu Nov 03 16:00:46 2011 -0700
     1.3 @@ -0,0 +1,22 @@
     1.4 +package com.aurellem.capture.examples;
     1.5 +
     1.6 +import java.io.File;
     1.7 +import java.io.IOException;
     1.8 +
     1.9 +import jme3test.helloworld.HelloLoop;
    1.10 +
    1.11 +import com.aurellem.capture.IsoTimer;
    1.12 +import com.aurellem.capture.Capture;
    1.13 +import com.jme3.app.SimpleApplication;
    1.14 +
    1.15 +public class HelloVideo {
    1.16 +
    1.17 +    public static void main(String[] ignore) throws IOException {
    1.18 +	SimpleApplication app = new HelloLoop();
    1.19 +	File video = File.createTempFile("helloVideo", ".avi");
    1.20 +	app.setTimer(new IsoTimer(60));
    1.21 +	Capture.captureVideo(app, video);
    1.22 +	app.start();
    1.23 +	System.out.println(video.getCanonicalPath());
    1.24 +    }
    1.25 +}