|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.sun.media.BasicController com.sun.media.BasicPlayer com.sun.media.MediaPlayer
public class MediaPlayer
MediaPlayer extends BasicPlayer and uses PlaybackEngine to play media.
字段摘要 | |
---|---|
protected PlaybackEngine |
engine
|
从类 com.sun.media.BasicPlayer 继承的字段 |
---|
bufferControl, cachingControl, controlComp, controllerList, controls, extendedCachingControl, framePositioning, regionControl, source, VERSION |
从类 com.sun.media.BasicController 继承的字段 |
---|
processError, state, stopThreadEnabled |
从接口 javax.media.Controller 继承的字段 |
---|
LATENCY_UNKNOWN, Prefetched, Prefetching, Realized, Realizing, Started, Unrealized |
从接口 javax.media.Clock 继承的字段 |
---|
RESET |
从接口 javax.media.Duration 继承的字段 |
---|
DURATION_UNBOUNDED, DURATION_UNKNOWN |
构造方法摘要 | |
---|---|
MediaPlayer()
|
方法摘要 | |
---|---|
protected boolean |
audioEnabled()
Return true if the player is currently playing media with an audio track. |
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. |
java.awt.Component |
getVisualComponent()
Obtain the visiual component from the media engine. |
void |
setProgressControl(com.sun.media.controls.ProgressControl p)
|
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. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
从接口 javax.media.Controller 继承的方法 |
---|
addControllerListener, close, deallocate, getControl, getState, getTargetState, prefetch, realize, removeControllerListener |
从接口 javax.media.Clock 继承的方法 |
---|
getRate, getStopTime, getSyncTime, getTimeBase, mapToTimeBase |
字段详细信息 |
---|
protected PlaybackEngine engine
构造方法详细信息 |
---|
public MediaPlayer()
方法详细信息 |
---|
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 void updateStats()
BasicPlayer
复制的描述
BasicPlayer
中的 updateStats
public void setProgressControl(com.sun.media.controls.ProgressControl p)
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |