|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.media.core.ScratchVideoRecorder
org.opensourcephysics.media.xuggle.XuggleVideoRecorder
public class XuggleVideoRecorder
| Field Summary |
|---|
| Fields inherited from class org.opensourcephysics.media.core.ScratchVideoRecorder |
|---|
canRecord, chooser, chooserField, dim, ext, frameCount, frameDuration, frameImage, hasContent, ignoreChooser, isSaved, saveChanges, saveFile, scratchFile, scratchName, scratchNumber, suggestedFileName, tempDirectory, tempFilePrefix, tempFiles, videoType |
| Constructor Summary | |
|---|---|
XuggleVideoRecorder(XuggleVideoType type)
Constructs a XuggleVideoRecorder object. |
|
| Method Summary | |
|---|---|
protected boolean |
append(java.awt.Image image)
Appends a frame to the current video by saving the image in a tempFile. |
protected void |
finalize()
Called by the garbage collector when this recorder is no longer in use. |
static void |
getSupportedCodecs(java.lang.String name)
Given the short name of a container, prints out information about it, including which codecs Xuggler can write (mux) into that container. |
void |
reset()
Discards the current video and resets the recorder to a ready state. |
protected void |
saveScratch()
Saves the video to the current scratchFile. |
protected boolean |
startRecording()
Starts the video recording process. |
| Methods inherited from class org.opensourcephysics.media.core.ScratchVideoRecorder |
|---|
addFrame, createScratch, createVideo, createVideo, deleteTempFiles, getFileName, getFileToBeSaved, getVideo, saveVideo, saveVideo, saveVideoAs, selectFile, setFileName, setFrameDuration, setSize, suggestFileName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XuggleVideoRecorder(XuggleVideoType type)
| Method Detail |
|---|
public void reset()
reset in interface VideoRecorderreset in class ScratchVideoRecorderprotected void finalize()
finalize in class ScratchVideoRecorderprotected boolean append(java.awt.Image image)
append in class ScratchVideoRecorderimage - the image to append
protected void saveScratch()
throws java.io.IOException
saveScratch in class ScratchVideoRecorderjava.io.IOExceptionprotected boolean startRecording()
startRecording in class ScratchVideoRecorderpublic static void getSupportedCodecs(java.lang.String name)
name - the short name of the format (e.g. "flv")
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||