FileDocCategorySizeDatePackage
Renderer.javaAPI DocJMF 2.1.1e2207Mon May 12 12:20:36 BST 2003javax.media

Renderer

public interface Renderer implements PlugIn
A Renderer is a media processing unit that renders input media to a pre-defined destination, such as the screen or system speaker. It has one input and no outputs--rendering is the final stage of the media processing pipeline.

If a Renderer implements the Clock interface, it can be used by a Player as the master time base for synchronization. In this case, the Renderer should update the media time and time-base time as it processes the media.

since
JMF 2.0

Fields Summary
Constructors Summary
Methods Summary
public javax.media.Format[]getSupportedInputFormats()
Lists the input formats supported by this Renderer.

return
An array of Format objects that represent the input formats supported by this Renderer.

public intprocess(javax.media.Buffer buffer)
Processes the data and renders it to the output device represented by this Renderer.

return
BUFFER_PROCESSED_OK if the processing is successful. Other possible return codes are defined in PlugIn.
see
PlugIn

public javax.media.FormatsetInputFormat(javax.media.Format format)
Sets the Format of the input data.

return
The Format that was set. This is typically the supported Format that most closely matches the specified Format. If possible, the format fields that were not specified are set to the preferred values in the returned Format. Returns null if the specified Format is not supported.

public voidstart()
Initiates the rendering process. When start is called, the renderer begins rendering any data available in its internal buffers.

public voidstop()
Halts the rendering process.