|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.app.state.AbstractAppState
com.jme3.app.state.VideoRecorderAppState
public class VideoRecorderAppState
A Video recording AppState that records the screen output into an AVI file with
M-JPEG content. The file should be playable on any OS in any video player.
The video recording starts when the state is attached and stops when it is detached
or the application is quit. You can set the fileName of the file to be written when the
state is detached, else the old file will be overwritten. If you specify no file
the AppState will attempt to write a file into the user home directory, made unique
by a timestamp.
Nested Class Summary | |
---|---|
static class |
VideoRecorderAppState.IsoTimer
|
Field Summary |
---|
Fields inherited from class com.jme3.app.state.AbstractAppState |
---|
initialized |
Constructor Summary | |
---|---|
VideoRecorderAppState()
Using this constructor the video files will be written sequentially to the user's home directory with a quality of 0.8 |
|
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(float quality)
Using this constructor the video files will be written sequentially to the user's home directory. |
Method Summary | |
---|---|
void |
cleanup()
Cleanup the game state. |
java.io.File |
getFile()
|
float |
getQuality()
Get the quality used to compress the video images. |
void |
initialize(AppStateManager stateManager,
Application app)
Called to initialize the AppState. |
void |
setFile(java.io.File file)
|
void |
setQuality(float quality)
Set the video image quality from 0(worst/smallest) to 1(best/largest). |
Methods inherited from class com.jme3.app.state.AbstractAppState |
---|
isEnabled, isInitialized, postRender, render, setEnabled, stateAttached, stateDetached, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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(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)Method Detail |
---|
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(AppStateManager stateManager, Application app)
AppState
initialize
in interface AppState
initialize
in class AbstractAppState
stateManager
- The state managerpublic void cleanup()
AppState
cleanup
in interface AppState
cleanup
in class AbstractAppState
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |