annotate src/com/aurellem/capture/examples/Basic.java @ 21:d924d7d29063

spazz dancing lol
author Robert McIntyre <rlm@mit.edu>
date Sat, 29 Oct 2011 16:23:57 -0700
parents be5ac56826be
children c7a07eefaeea
rev   line source
rlm@14 1 package com.aurellem.capture.examples;
rlm@14 2
rlm@14 3 import java.io.File;
rlm@14 4 import java.io.IOException;
rlm@14 5
rlm@14 6 import jme3test.helloworld.HelloAudio;
rlm@14 7 import jme3test.helloworld.HelloJME3;
rlm@14 8 import jme3test.niftygui.TestNiftyExamples;
rlm@14 9 import jme3test.water.TestPostWater;
rlm@14 10
rlm@14 11 import com.aurellem.capture.Capture;
rlm@14 12 import com.aurellem.capture.IsoTimer;
rlm@14 13 import com.jme3.app.SimpleApplication;
rlm@14 14
rlm@14 15
rlm@14 16 /**
rlm@14 17 *
rlm@14 18 * Demonstrates how to use basic Audio/Video capture with a jMonkeyEngine
rlm@14 19 * application. You can use these techniques to make high quality cutscenes
rlm@14 20 * or demo videos, even on very slow laptops.
rlm@14 21 *
rlm@14 22 * @author Robert McIntyre
rlm@14 23 *
rlm@14 24 */
rlm@14 25
rlm@14 26 public class Basic {
rlm@14 27
rlm@15 28 public static void main(String[] ignore) throws IOException{
rlm@15 29 File video = File.createTempFile("JME-water-video", ".avi");
rlm@15 30 File audio = File.createTempFile("JME-water-audio", ".wav");
rlm@14 31
rlm@15 32 System.out.println(video.getCanonicalPath());
rlm@15 33 System.out.println(audio.getCanonicalPath());
rlm@14 34
rlm@14 35 SimpleApplication app = new TestPostWater();
rlm@14 36 app.setTimer(new IsoTimer(60));
rlm@14 37 app.setShowSettings(false);
rlm@14 38
rlm@14 39 Capture.captureVideo(app, video);
rlm@14 40 Capture.captureAudio(app, audio);
rlm@14 41
rlm@14 42 app.start();
rlm@14 43 }
rlm@14 44 }