|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.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
中的 setSource
BasicPlayer
中的 setSource
source
- 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
中的 getVisualComponent
BasicPlayer
中的 getVisualComponent
public GainControl getGainControl()
Player
中的 getGainControl
BasicPlayer
中的 getGainControl
public Time getMediaTime()
Clock
中的 getMediaTime
BasicController
中的 getMediaTime
public long getMediaNanoseconds()
BasicController
复制的描述
Clock
中的 getMediaNanoseconds
BasicController
中的 getMediaNanoseconds
protected TimeBase getMasterTimeBase()
BasicPlayer
中的 getMasterTimeBase
protected boolean audioEnabled()
BasicPlayer
复制的描述
BasicPlayer
中的 audioEnabled
protected boolean videoEnabled()
BasicPlayer
复制的描述
BasicPlayer
中的 videoEnabled
public javax.media.control.TrackControl[] getTrackControls() throws NotConfiguredError
Processor
中的 getTrackControls
BasicProcessor
中的 getTrackControls
TrackControl
available for this Processor.
NotConfiguredError
- if the Processor is Unrealized.public javax.media.protocol.ContentDescriptor[] getSupportedContentDescriptors() throws NotConfiguredError
Processor
中的 getSupportedContentDescriptors
BasicProcessor
中的 getSupportedContentDescriptors
NotConfiguredError
- if the Processor is Unrealized.public javax.media.protocol.ContentDescriptor setContentDescriptor(javax.media.protocol.ContentDescriptor ocd) throws NotConfiguredError
Processor
中的 setContentDescriptor
BasicProcessor
中的 setContentDescriptor
ocd
- 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
中的 getContentDescriptor
BasicProcessor
中的 getContentDescriptor
NotConfiguredError
- if the Processor is Unrealized.public javax.media.protocol.DataSource getDataOutput() throws NotRealizedError
Processor
中的 getDataOutput
BasicProcessor
中的 getDataOutput
NotRealizedError
- if the Processor is not realized.public void updateStats()
BasicPlayer
复制的描述
BasicPlayer
中的 updateStats
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |