comparison 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
comparison
equal deleted inserted replaced
38:adeb88787645 39:784a3f4e6202
6 6
7 import com.aurellem.capture.audio.MultiListener; 7 import com.aurellem.capture.audio.MultiListener;
8 import com.aurellem.capture.audio.WaveFileWriter; 8 import com.aurellem.capture.audio.WaveFileWriter;
9 import com.aurellem.capture.video.AVIVideoRecorder; 9 import com.aurellem.capture.video.AVIVideoRecorder;
10 import com.aurellem.capture.video.AbstractVideoRecorder; 10 import com.aurellem.capture.video.AbstractVideoRecorder;
11 import com.aurellem.capture.video.FileVideoRecorder;
11 import com.aurellem.capture.video.XuggleVideoRecorder; 12 import com.aurellem.capture.video.XuggleVideoRecorder;
12 import com.jme3.app.Application; 13 import com.jme3.app.Application;
13 import com.jme3.audio.AudioRenderer; 14 import com.jme3.audio.AudioRenderer;
14 import com.jme3.renderer.ViewPort; 15 import com.jme3.renderer.ViewPort;
15 import com.jme3.scene.Spatial; 16 import com.jme3.scene.Spatial;
25 // is used as a fallback option. Please visit http://www.xuggle.com/ to learn 26 // is used as a fallback option. Please visit http://www.xuggle.com/ to learn
26 // how to set up the XuggleVideoRecorder. 27 // how to set up the XuggleVideoRecorder.
27 28
28 if (file.getCanonicalPath().endsWith(".avi")){ 29 if (file.getCanonicalPath().endsWith(".avi")){
29 videoRecorder = new AVIVideoRecorder(file);} 30 videoRecorder = new AVIVideoRecorder(file);}
31 else if (file.isDirectory()){
32 videoRecorder = new FileVideoRecorder(file);}
30 else { videoRecorder = new XuggleVideoRecorder(file);} 33 else { videoRecorder = new XuggleVideoRecorder(file);}
31 34
32 Callable<Object> thunk = new Callable<Object>(){ 35 Callable<Object> thunk = new Callable<Object>(){
33 public Object call(){ 36 public Object call(){
34 37