com.sun.media
类 BasicProcessor
java.lang.Object
com.sun.media.BasicController
com.sun.media.BasicPlayer
com.sun.media.BasicProcessor
- 所有已实现的接口:
- Clock, Controller, ControllerListener, DownloadProgressListener, Duration, MediaHandler, Player, Processor
- 直接已知子类:
- MediaProcessor
public abstract class BasicProcessor
- extends BasicPlayer
- implements Processor
BasicProcessor implements the bases of a javax.media.Processor. It handles
all the Processor state transitions, event handling and management of
any Controller under its control.
方法摘要 |
javax.media.protocol.ContentDescriptor |
getContentDescriptor()
Return the output content-type. |
javax.media.protocol.DataSource |
getDataOutput()
Return the output DataSource of the Processor. |
javax.media.protocol.ContentDescriptor[] |
getSupportedContentDescriptors()
Return all the content-types which this Processor's output supports. |
javax.media.control.TrackControl[] |
getTrackControls()
Return the tracks in the media. |
protected boolean |
isConfigurable()
A processor is configurable. |
javax.media.protocol.ContentDescriptor |
setContentDescriptor(javax.media.protocol.ContentDescriptor ocd)
Set the output content-type. |
从类 com.sun.media.BasicPlayer 继承的方法 |
abortPrefetch, abortRealize, addController, audioEnabled, completeConfigure, completePrefetch, completeRealize, controllerSetStopTime, controllerStopAtTime, controllerUpdate, deviceBusy, doClose, doConfigure, doFailedConfigure, doFailedPrefetch, doFailedRealize, doPrefetch, doRealize, doSetMediaTime, doSetRate, doStart, doStop, downloadUpdate, getContentType, getControllerList, getControlPanelComponent, getControls, getDuration, getGainControl, getMasterTimeBase, getMediaLocator, getSource, getStartLatency, getVisualComponent, isAboutToRestart, isFramePositionable, manageController, manageController, processEndOfMedia, processEvent, removeController, setMediaLength, setMediaTime, setRate, setSource, setStopTime, setTimeBase, slaveToMasterTimeBase, start, stop, stopAtTime, syncStart, unmanageController, updateDuration, updateStats, videoEnabled |
从类 com.sun.media.BasicController 继承的方法 |
abortConfigure, addControllerListener, close, configure, deallocate, dispatchEvent, doDeallocate, getClock, getControl, getMediaNanoseconds, getMediaTime, getRate, getState, getStopTime, getSyncTime, getTargetState, getTimeBase, interrupt, isInterrupted, mapToTimeBase, prefetch, realize, removeControllerListener, resetInterrupt, sendEvent, setClock, setTargetState, stopControllerOnly, syncStartInProgress, throwError |
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
从接口 javax.media.Controller 继承的方法 |
addControllerListener, close, deallocate, getControl, getControls, getStartLatency, getState, getTargetState, prefetch, realize, removeControllerListener |
从接口 javax.media.Clock 继承的方法 |
getMediaNanoseconds, getMediaTime, getRate, getStopTime, getSyncTime, getTimeBase, mapToTimeBase, setMediaTime, setRate, setStopTime, setTimeBase, stop, syncStart |
BasicProcessor
public BasicProcessor()
isConfigurable
protected boolean isConfigurable()
- A processor is configurable.
- 覆盖:
- 类
BasicPlayer
中的 isConfigurable
getTrackControls
public javax.media.control.TrackControl[] getTrackControls()
throws NotConfiguredError
- Return the tracks in the media. This method can only be called after
the Processor has been configured.
A
NotConfiguredError
is thrown if
getTrackControls
is called and the
Processor is in the Unrealized
or
Configuring
states.
- 指定者:
- 接口
Processor
中的 getTrackControls
- 返回:
- An array of the tracks in the media. An emtpy array is returned
if there is no
TrackControl
available for this Processor.
- 抛出:
NotConfiguredError
- if the Processor is Unrealized.
getSupportedContentDescriptors
public javax.media.protocol.ContentDescriptor[] getSupportedContentDescriptors()
throws NotConfiguredError
- Return all the content-types which this Processor's output supports.
The Processor builds the
ContentDescriptor
array according
to the input DataSource attached to the Processor and according
to the codecs
and multiplexers installed in the system.
- 指定者:
- 接口
Processor
中的 getSupportedContentDescriptors
- 返回:
- An array of the the content-types supported by the Processor.
- 抛出:
NotConfiguredError
- if the Processor is Unrealized.
setContentDescriptor
public javax.media.protocol.ContentDescriptor setContentDescriptor(javax.media.protocol.ContentDescriptor ocd)
throws NotConfiguredError
- Set the output content-type.
If
setContentDescriptor
is not called, the
output DataSource's output
will be on individual tracks.
- 指定者:
- 接口
Processor
中的 setContentDescriptor
- 参数:
outputContentDescriptor
- the content-type of the output.
- 返回:
- The content descriptor that most closely matches the specified content
descriptor or null if the specified content descriptor cannot be set.
- 抛出:
NotConfiguredError
- if the Processor is Unrealized.
realized state and it does not support format changes after it has been
realized.
getContentDescriptor
public javax.media.protocol.ContentDescriptor getContentDescriptor()
throws NotConfiguredError
- Return the output content-type.
- 指定者:
- 接口
Processor
中的 getContentDescriptor
- 返回:
- The current output content-type.
- 抛出:
NotConfiguredError
- if the Processor is Unrealized.
getDataOutput
public javax.media.protocol.DataSource getDataOutput()
throws NotRealizedError
- Return the output DataSource of the Processor. The output DataSource
is the output connection of the Processor through which it
supplies the processed streams.
- 指定者:
- 接口
Processor
中的 getDataOutput
- 返回:
- The output DataSource of the Processor.
- 抛出:
NotRealizedError
- if the Processor is not realized.