changeset 47:74b53dfe369e

stressing similiarity between audio and video capture
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Dec 2011 12:48:40 -0600
parents fc71e797f4fa
children 6ecfef90e9eb
files src/com/aurellem/capture/examples/HelloVideoRecording.java
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/src/com/aurellem/capture/examples/HelloVideoRecording.java	Sat Dec 03 12:47:05 2011 -0600
     1.2 +++ b/src/com/aurellem/capture/examples/HelloVideoRecording.java	Sat Dec 03 12:48:40 2011 -0600
     1.3 @@ -5,18 +5,18 @@
     1.4  
     1.5  import jme3test.helloworld.HelloLoop;
     1.6  
     1.7 +import com.aurellem.capture.Capture;
     1.8  import com.aurellem.capture.IsoTimer;
     1.9 -import com.aurellem.capture.Capture;
    1.10 -import com.jme3.app.SimpleApplication;
    1.11 +import com.jme3.app.Application;
    1.12  
    1.13  public class HelloVideoRecording {
    1.14  
    1.15 -    public static void main(String[] ignore) throws IOException {
    1.16 -	SimpleApplication app = new HelloLoop();
    1.17 -	File video = File.createTempFile("helloVideo", ".avi");
    1.18 -	app.setTimer(new IsoTimer(60));
    1.19 -	Capture.captureVideo(app, video);
    1.20 -	app.start();
    1.21 -	System.out.println(video.getCanonicalPath());
    1.22 -    }
    1.23 +	public static void main(String[] ignore) throws IOException {
    1.24 +		Application app = new HelloLoop();
    1.25 +		File video = File.createTempFile("JME-simple-video", ".avi");
    1.26 +		app.setTimer(new IsoTimer(60));
    1.27 +		Capture.captureVideo(app, video);
    1.28 +		app.start();
    1.29 +		System.out.println(video.getCanonicalPath());
    1.30 +	}
    1.31  }