|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectcom.sun.media.BasicController
com.sun.media.BasicPlayer
com.sun.media.BasicProcessor
com.sun.media.MediaProcessor
public class MediaProcessor
MediaProcessor extends BasicProcessor and uses ProcessEngine to process media.
| 字段摘要 | |
|---|---|
protected ProcessEngine |
engine
|
| 从类 com.sun.media.BasicPlayer 继承的字段 |
|---|
bufferControl, cachingControl, controlComp, controllerList, controls, extendedCachingControl, framePositioning, regionControl, source, VERSION |
| 从类 com.sun.media.BasicController 继承的字段 |
|---|
processError, state, stopThreadEnabled |
| 从接口 javax.media.Processor 继承的字段 |
|---|
Configured, Configuring |
| 从接口 javax.media.Controller 继承的字段 |
|---|
LATENCY_UNKNOWN, Prefetched, Prefetching, Realized, Realizing, Started, Unrealized |
| 从接口 javax.media.Clock 继承的字段 |
|---|
RESET |
| 从接口 javax.media.Duration 继承的字段 |
|---|
DURATION_UNBOUNDED, DURATION_UNKNOWN |
| 构造方法摘要 | |
|---|---|
MediaProcessor()
|
|
| 方法摘要 | |
|---|---|
protected boolean |
audioEnabled()
Return true if the player is currently playing media with an audio track. |
javax.media.protocol.ContentDescriptor |
getContentDescriptor()
Return the output content-type. |
javax.media.protocol.DataSource |
getDataOutput()
Return the output DataSource of the Processor. |
GainControl |
getGainControl()
Obtain the gain control from the media engine. |
protected TimeBase |
getMasterTimeBase()
Obtain the time base from the media engine. |
long |
getMediaNanoseconds()
Get the current media time in nanoseconds. |
Time |
getMediaTime()
Obtain media time directly from the engine. |
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. |
java.awt.Component |
getVisualComponent()
Obtain the visiual component from the media engine. |
javax.media.protocol.ContentDescriptor |
setContentDescriptor(javax.media.protocol.ContentDescriptor ocd)
Set the output content-type. |
void |
setSource(javax.media.protocol.DataSource source)
Set the DataSource that provides the media for this player. |
void |
updateStats()
This is being called from a looping thread to update the stats. |
protected boolean |
videoEnabled()
Return true if the player is currently playing media with a video track. |
| 从类 com.sun.media.BasicProcessor 继承的方法 |
|---|
isConfigurable |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 从接口 javax.media.Processor 继承的方法 |
|---|
configure |
| 从接口 javax.media.Player 继承的方法 |
|---|
addController, getControlPanelComponent, removeController, start |
| 从接口 javax.media.Controller 继承的方法 |
|---|
addControllerListener, close, deallocate, getControl, getControls, getStartLatency, getState, getTargetState, prefetch, realize, removeControllerListener |
| 从接口 javax.media.Clock 继承的方法 |
|---|
getRate, getStopTime, getSyncTime, getTimeBase, mapToTimeBase, setMediaTime, setRate, setStopTime, setTimeBase, stop, syncStart |
| 从接口 javax.media.Duration 继承的方法 |
|---|
getDuration |
| 字段详细信息 |
|---|
protected ProcessEngine engine
| 构造方法详细信息 |
|---|
public MediaProcessor()
| 方法详细信息 |
|---|
public void setSource(javax.media.protocol.DataSource source)
throws java.io.IOException,
IncompatibleSourceException
BasicPlayer 复制的描述
MediaHandler 中的 setSourceBasicPlayer 中的 setSourcesource - of media for this player.
java.io.IOException - thrown when an i/o error occurs
in reading information from the data source.
IncompatibleSourceException - thrown if the Player
can't use this source.public java.awt.Component getVisualComponent()
Player 中的 getVisualComponentBasicPlayer 中的 getVisualComponentpublic GainControl getGainControl()
Player 中的 getGainControlBasicPlayer 中的 getGainControlpublic Time getMediaTime()
Clock 中的 getMediaTimeBasicController 中的 getMediaTimepublic long getMediaNanoseconds()
BasicController 复制的描述
Clock 中的 getMediaNanosecondsBasicController 中的 getMediaNanosecondsprotected TimeBase getMasterTimeBase()
BasicPlayer 中的 getMasterTimeBaseprotected boolean audioEnabled()
BasicPlayer 复制的描述
BasicPlayer 中的 audioEnabledprotected boolean videoEnabled()
BasicPlayer 复制的描述
BasicPlayer 中的 videoEnabled
public javax.media.control.TrackControl[] getTrackControls()
throws NotConfiguredError
Processor 中的 getTrackControlsBasicProcessor 中的 getTrackControlsTrackControl available for this Processor.
NotConfiguredError - if the Processor is Unrealized.
public javax.media.protocol.ContentDescriptor[] getSupportedContentDescriptors()
throws NotConfiguredError
Processor 中的 getSupportedContentDescriptorsBasicProcessor 中的 getSupportedContentDescriptorsNotConfiguredError - if the Processor is Unrealized.
public javax.media.protocol.ContentDescriptor setContentDescriptor(javax.media.protocol.ContentDescriptor ocd)
throws NotConfiguredError
Processor 中的 setContentDescriptorBasicProcessor 中的 setContentDescriptorocd - The content type to be used for the Processor output.
NotConfiguredError - if the Processor is Unrealized.
realized state and it does not support format changes after it has been
realized.
public javax.media.protocol.ContentDescriptor getContentDescriptor()
throws NotConfiguredError
Processor 中的 getContentDescriptorBasicProcessor 中的 getContentDescriptorNotConfiguredError - if the Processor is Unrealized.
public javax.media.protocol.DataSource getDataOutput()
throws NotRealizedError
Processor 中的 getDataOutputBasicProcessor 中的 getDataOutputNotRealizedError - if the Processor is not realized.public void updateStats()
BasicPlayer 复制的描述
BasicPlayer 中的 updateStats
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||