|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.web3d.vrml.renderer.common.input.movie.MovieDecoder
public class MovieDecoder
This class wraps an instance of the JMF Processor class. It decodes a mpeg video stream and sends the audio and video frames to the handlers specified at creation time.
| Nested Class Summary | |
|---|---|
static interface |
MovieDecoder.Action
This is the base class for actions performed on the processor. |
class |
MovieDecoder.ControlThread
This thread class consumes the action queue and executes actions on the processor. |
class |
MovieDecoder.RewindAction
This action rewinds the processor and starts it playing. |
class |
MovieDecoder.SetRateAction
|
class |
MovieDecoder.StartAction
This action starts the processor running. |
class |
MovieDecoder.StopAction
This action class stops a running processor. |
| Field Summary | |
|---|---|
int |
ALLSTATES
|
int |
REALIZED
|
int |
REWOUND
|
int |
STARTED
|
int |
TIMESET
|
| Constructor Summary | |
|---|---|
MovieDecoder(VideoStreamHandler videoStreamHandler)
Constructor for the MovieDecoder. |
|
| Method Summary | |
|---|---|
void |
controllerUpdate(javax.media.ControllerEvent event)
Callback for controller events. |
void |
init(java.lang.String mediaFile)
Initializes the decoder. |
void |
rewind()
Stops, Rewinds and Restarts the processor. |
void |
setRate(float speed)
Sets the speed (rate) of playout. |
void |
start()
Starts the processor running. |
void |
stop()
Stops the processor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int REALIZED
public final int STARTED
public final int REWOUND
public final int TIMESET
public final int ALLSTATES
| Constructor Detail |
|---|
public MovieDecoder(VideoStreamHandler videoStreamHandler)
videoStreamHandler - - handler to be called with each video frame.| Method Detail |
|---|
public void init(java.lang.String mediaFile)
mediaFile - - the URL of the media file to be loadedpublic void start()
public void stop()
public void rewind()
public void setRate(float speed)
speed - - playback rate scale factor. 1.0 is normal speed.public void controllerUpdate(javax.media.ControllerEvent event)
controllerUpdate in interface javax.media.ControllerListenerevent - - describes the nature of the state change.
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||