javax.media.control
Interface TrackControl

All Superinterfaces:
Control, Controls, FormatControl

public interface TrackControl
extends FormatControl, Controls

The TrackControl interface is provided by the Processor to query, control and manipulate the data of individual media tracks.

Since:
JMF 2.0
See Also:
Format, Processor

Method Summary
 void setCodecChain(Codec[] codecs)
          Specify a chain of Codec plugins to be used on the track.
 void setRenderer(Renderer renderer)
          Replace the default renderer of the Processor with the given one.
 
Methods inherited from interface javax.media.control.FormatControl
getFormat, getSupportedFormats, isEnabled, setEnabled, setFormat
 
Methods inherited from interface javax.media.Control
getControlComponent
 
Methods inherited from interface javax.media.Controls
getControl, getControls
 

Method Detail

setCodecChain

public void setCodecChain(Codec[] codecs)
                   throws UnsupportedPlugInException,
                          NotConfiguredError
Specify a chain of Codec plugins to be used on the track. The Processor will try its best to insert the codecs in the given order to the data flow.
Effect is a subclass of Codec and thus can be used also in this method.

Parameters:
codecs - an array of Codec plugins to be set.
Throws:
NotConfiguredError - if the owning Processor is not configured.
UnsupportedPlugInException - if the PlugIn cannot be set.

setRenderer

public void setRenderer(Renderer renderer)
                 throws UnsupportedPlugInException,
                        NotConfiguredError
Replace the default renderer of the Processor with the given one.

Parameters:
renderer - the Renderer plugin to be used.
Throws:
NotConfiguredError - if the owning Processor is not configured.
UnsupportedPlugInException - if the PlugIn cannot be set.