Mercurial > jmeCapture
view src/com/aurellem/capture/examples/Basic.java @ 55:b05f629fc296
add contact info
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Dec 2011 19:18:38 -0600 |
parents | 3dc1f15e1e13 |
children | afc437f637bd |
line wrap: on
line source
1 package com.aurellem.capture.examples;3 import java.io.File;4 import java.io.IOException;6 import jme3test.water.TestPostWater;8 import com.aurellem.capture.Capture;9 import com.aurellem.capture.IsoTimer;10 import com.jme3.app.SimpleApplication;13 /**14 *15 * Demonstrates how to use basic Audio/Video capture with a jMonkeyEngine16 * application. You can use these techniques to make high quality cutscenes17 * or demo videos, even on very slow laptops.18 *19 * @author Robert McIntyre20 */22 public class Basic {24 public static void main(String[] ignore) throws IOException{25 File video = File.createTempFile("JME-water-video", ".avi");26 File audio = File.createTempFile("JME-water-audio", ".wav");28 SimpleApplication app = new TestPostWater();29 app.setTimer(new IsoTimer(60));30 app.setShowSettings(false);32 Capture.captureVideo(app, video);33 Capture.captureAudio(app, audio);35 app.start();37 System.out.println(video.getCanonicalPath());38 System.out.println(audio.getCanonicalPath());39 }40 }