public class VideoRecorderAppState
extends com.jme3.app.state.AbstractAppState
| Modifier and Type | Class and Description |
|---|---|
static class |
VideoRecorderAppState.IsoTimer |
| Constructor and Description |
|---|
VideoRecorderAppState()
Using this constructor the video files will be written sequentially to the user's home directory with
a quality of 0.8 and a framerate of 30fps.
|
VideoRecorderAppState(java.io.File file)
This constructor allows you to specify the output file of the video.
|
VideoRecorderAppState(java.io.File file,
float quality)
This constructor allows you to specify the output file of the video as well as the quality
|
VideoRecorderAppState(java.io.File file,
float quality,
int framerate)
This constructor allows you to specify the output file of the video as well as the quality
|
VideoRecorderAppState(float quality)
Using this constructor the video files will be written sequentially to the user's home directory.
|
VideoRecorderAppState(float quality,
int framerate)
Using this constructor the video files will be written sequentially to the user's home directory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
java.io.File |
getFile() |
float |
getQuality()
Get the quality used to compress the video images.
|
void |
initialize(com.jme3.app.state.AppStateManager stateManager,
com.jme3.app.Application app) |
void |
setFile(java.io.File file) |
void |
setQuality(float quality)
Set the video image quality from 0(worst/smallest) to 1(best/largest).
|
public VideoRecorderAppState()
public VideoRecorderAppState(float quality)
quality - the quality of the jpegs in the video stream (0.0 smallest file - 1.0 largest file)public VideoRecorderAppState(float quality,
int framerate)
quality - the quality of the jpegs in the video stream (0.0 smallest file - 1.0 largest file)framerate - the frame rate of the resulting video, the application will be locked to this frameratepublic VideoRecorderAppState(java.io.File file)
file - the video filepublic VideoRecorderAppState(java.io.File file,
float quality)
file - the video filequality - the quality of the jpegs in the video stream (0.0 smallest file - 1.0 largest file)framerate - the frame rate of the resulting video, the application will be locked to this frameratepublic VideoRecorderAppState(java.io.File file,
float quality,
int framerate)
file - the video filequality - the quality of the jpegs in the video stream (0.0 smallest file - 1.0 largest file)public java.io.File getFile()
public void setFile(java.io.File file)
public float getQuality()
public void setQuality(float quality)
quality - the quality of the jpegs in the video stream (0.0 smallest file - 1.0 largest file)public void initialize(com.jme3.app.state.AppStateManager stateManager,
com.jme3.app.Application app)
initialize in interface com.jme3.app.state.AppStateinitialize in class com.jme3.app.state.AbstractAppStatepublic void cleanup()
cleanup in interface com.jme3.app.state.AppStatecleanup in class com.jme3.app.state.AbstractAppState