|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectcom.sun.media.BasicTrackControl
public class BasicTrackControl
Basic track control for use with a Processor or Player.
| 字段摘要 | |
|---|---|
protected java.util.Vector |
modules
|
protected BasicMuxModule |
muxModule
|
protected boolean |
prefetchFailed
|
protected boolean |
rendererFailed
|
protected BasicRendererModule |
rendererModule
|
| 构造方法摘要 | |
|---|---|
BasicTrackControl(PlaybackEngine engine,
Track track,
OutputConnector oc)
|
|
| 方法摘要 | |
|---|---|
boolean |
buildTrack(int trackID,
int numTracks)
Top level routine to build a single track. |
protected javax.media.control.FrameRateControl |
frameRateControl()
|
java.lang.Object |
getControl(java.lang.String type)
Obtain the object that implements the specified Class or Interface
The full class or interface name must be used. |
java.awt.Component |
getControlComponent()
Get the Component associated with this
Control object. |
java.lang.Object[] |
getControls()
Obtain the collection of objects that control the object that implements this interface. |
Format |
getFormat()
Obtain the format that this object is set to. |
Format |
getOriginalFormat()
|
Format[] |
getSupportedFormats()
Lists the possible input formats supported by this plug-in. |
boolean |
isCustomized()
|
boolean |
isEnabled()
Return the state of the track. |
boolean |
isTimeBase()
Returns true if this track holds the master time base. |
boolean |
prefetchTrack()
Prefetch the modules for this track. |
void |
prError()
|
protected com.sun.media.controls.ProgressControl |
progressControl()
|
void |
setCodecChain(Codec[] codec)
Specify a chain of Codec plugins to be used on the track. |
void |
setEnabled(boolean enabled)
Enable or disable the track. |
Format |
setFormat(Format format)
Sets the data format. |
void |
setRenderer(Renderer renderer)
Replace the default renderer of the Processor
with the given one. |
void |
startTrack()
Start the modules for this track. |
void |
stopTrack()
Start the modules for this track. |
void |
updateFormat()
Update the format per track on the progress control. |
void |
updateRates(long now)
Update the frame rate per track on the progress control. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected java.util.Vector modules
protected BasicRendererModule rendererModule
protected BasicMuxModule muxModule
protected boolean prefetchFailed
protected boolean rendererFailed
| 构造方法详细信息 |
|---|
public BasicTrackControl(PlaybackEngine engine,
Track track,
OutputConnector oc)
| 方法详细信息 |
|---|
public Format getOriginalFormat()
public Format getFormat()
javax.media.control.FormatControl 复制的描述
javax.media.control.FormatControl 中的 getFormatpublic Format[] getSupportedFormats()
javax.media.control.FormatControl 复制的描述
javax.media.control.FormatControl 中的 getSupportedFormats
public boolean buildTrack(int trackID,
int numTracks)
public Format setFormat(Format format)
javax.media.control.FormatControl 复制的描述However in some situations, returning a non-null format does not necessarily mean that the format is supported since determining the supported formats may be state dependent or simply too costly. In such cases, the setFormat call will succeed but the object may fail in another state-transition operation such as when the object is being initialized.
Alternatively, the getSupportedFormats method can be used to query for the list of supported formats. The resulting list can be used to screen for the valid formats before setting that on the object.
javax.media.control.FormatControl 中的 setFormat
public void setCodecChain(Codec[] codec)
throws NotConfiguredError,
UnsupportedPlugInException
javax.media.control.TrackControl 复制的描述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.
javax.media.control.TrackControl 中的 setCodecChaincodec - an array of Codec plugins to be set.
NotConfiguredError - if the owning
Processor is not configured.
UnsupportedPlugInException - if the
PlugIn cannot be set.
public void setRenderer(Renderer renderer)
throws NotConfiguredError
javax.media.control.TrackControl 复制的描述Processor
with the given one.
javax.media.control.TrackControl 中的 setRendererrenderer - the Renderer plugin to be used.
NotConfiguredError - if the owning
Processor is not configured.public boolean prefetchTrack()
public void startTrack()
public void stopTrack()
public boolean isCustomized()
public boolean isTimeBase()
public boolean isEnabled()
javax.media.control.FormatControl 复制的描述
javax.media.control.FormatControl 中的 isEnabledpublic void setEnabled(boolean enabled)
javax.media.control.FormatControl 复制的描述
javax.media.control.FormatControl 中的 setEnabledenabled - true if the track is to be enabled.protected com.sun.media.controls.ProgressControl progressControl()
protected javax.media.control.FrameRateControl frameRateControl()
public void prError()
public java.lang.Object[] getControls()
throws NotRealizedError
Controls 复制的描述If no controls are supported, a zero length array is returned.
Controls 中的 getControlsNotRealizedErrorpublic java.lang.Object getControl(java.lang.String type)
Controls 复制的描述Class or Interface
The full class or interface name must be used.
If the control is not supported then null
is returned.
Controls 中的 getControlnull.public java.awt.Component getControlComponent()
Control 复制的描述Component associated with this
Control object.
For example, this method might return
a slider for volume control or a panel containing radio buttons for
CODEC control.
The getControlComponent method can return
null if there is no GUI control for
this Control.
Control 中的 getControlComponentpublic void updateFormat()
public void updateRates(long now)
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||