rlm@14: package com.aurellem.capture.examples; rlm@14: rlm@14: import java.io.File; rlm@14: import java.io.IOException; rlm@14: rlm@14: import jme3test.helloworld.HelloAudio; rlm@14: import jme3test.helloworld.HelloJME3; rlm@14: import jme3test.niftygui.TestNiftyExamples; rlm@14: import jme3test.water.TestPostWater; rlm@14: rlm@14: import com.aurellem.capture.Capture; rlm@14: import com.aurellem.capture.IsoTimer; rlm@14: import com.jme3.app.SimpleApplication; rlm@14: rlm@14: rlm@14: /** rlm@14: * rlm@14: * Demonstrates how to use basic Audio/Video capture with a jMonkeyEngine rlm@14: * application. You can use these techniques to make high quality cutscenes rlm@14: * or demo videos, even on very slow laptops. rlm@14: * rlm@14: * @author Robert McIntyre rlm@14: * rlm@14: */ rlm@14: rlm@14: public class Basic { rlm@14: rlm@15: public static void main(String[] ignore) throws IOException{ rlm@15: File video = File.createTempFile("JME-water-video", ".avi"); rlm@15: File audio = File.createTempFile("JME-water-audio", ".wav"); rlm@14: rlm@15: System.out.println(video.getCanonicalPath()); rlm@15: System.out.println(audio.getCanonicalPath()); rlm@14: rlm@14: SimpleApplication app = new TestPostWater(); rlm@14: app.setTimer(new IsoTimer(60)); rlm@14: app.setShowSettings(false); rlm@14: rlm@14: Capture.captureVideo(app, video); rlm@14: Capture.captureAudio(app, audio); rlm@14: rlm@14: app.start(); rlm@14: } rlm@14: }