Mercurial > jmeCapture
view src/com/aurellem/capture/examples/HelloVideoRecording.java @ 49:121b6d7e4d3f
more friendly AppSettings handling
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Dec 2011 13:22:27 -0600 |
parents | 74b53dfe369e |
children | 8a091a5f48fa |
line wrap: on
line source
1 package com.aurellem.capture.examples;3 import java.io.File;4 import java.io.IOException;6 import jme3test.helloworld.HelloLoop;8 import com.aurellem.capture.Capture;9 import com.aurellem.capture.IsoTimer;10 import com.jme3.app.Application;12 public class HelloVideoRecording {14 public static void main(String[] ignore) throws IOException {15 Application app = new HelloLoop();16 File video = File.createTempFile("JME-simple-video", ".avi");17 app.setTimer(new IsoTimer(60));18 Capture.captureVideo(app, video);19 app.start();20 System.out.println(video.getCanonicalPath());21 }22 }