javax.media.control
Interface TrackControl
- 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. |
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.
Submit a bug or feature
Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.