diff src/com/aurellem/capture/Capture.java @ 39:784a3f4e6202

updating capture-video
author Robert McIntyre <rlm@mit.edu>
date Thu, 03 Nov 2011 16:00:46 -0700
parents 5f616cc420dd
children 388f9d062012
line wrap: on
line diff
     1.1 --- a/src/com/aurellem/capture/Capture.java	Mon Oct 31 07:43:44 2011 -0700
     1.2 +++ b/src/com/aurellem/capture/Capture.java	Thu Nov 03 16:00:46 2011 -0700
     1.3 @@ -8,6 +8,7 @@
     1.4  import com.aurellem.capture.audio.WaveFileWriter;
     1.5  import com.aurellem.capture.video.AVIVideoRecorder;
     1.6  import com.aurellem.capture.video.AbstractVideoRecorder;
     1.7 +import com.aurellem.capture.video.FileVideoRecorder;
     1.8  import com.aurellem.capture.video.XuggleVideoRecorder;
     1.9  import com.jme3.app.Application;
    1.10  import com.jme3.audio.AudioRenderer;
    1.11 @@ -27,6 +28,8 @@
    1.12  
    1.13  		if (file.getCanonicalPath().endsWith(".avi")){
    1.14  			videoRecorder = new AVIVideoRecorder(file);}
    1.15 +		else if (file.isDirectory()){
    1.16 +			videoRecorder = new FileVideoRecorder(file);}
    1.17  		else { videoRecorder = new XuggleVideoRecorder(file);}
    1.18  
    1.19  		Callable<Object> thunk = new Callable<Object>(){