|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VideoStreamHandler
Defines the interface used by the MovieDecoder to return a video stream to the caller.
| Method Summary | |
|---|---|
void |
videoStreamDuration(double seconds)
Called when the duration of the stream is known. |
void |
videoStreamFormat(int width,
int height)
Called when the format is known. |
void |
videoStreamFrame(NIOBufferImage image)
Called when a frame is available for display. |
void |
videoStreamStart()
Called once before the first frame is sent. |
void |
videoStreamStop()
Called after the last frame is sent. |
| Method Detail |
|---|
void videoStreamFrame(NIOBufferImage image)
image - - the next image as an RGB format NIOBufferImage
void videoStreamFormat(int width,
int height)
width - - horizontal image size in pixelsheight - - vertical image size in pixelsvoid videoStreamDuration(double seconds)
seconds - - number of seconds the stream runs for, or -1 if unknown.void videoStreamStart()
void videoStreamStop()
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||