|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.sun.media.BasicModule com.sun.media.BasicSinkModule
public abstract class BasicSinkModule
BasicSinkModule is the base class for the modules that are the end points of a flow graph. Renderer modules and Multiplexer modules are two decendents of it. It manages a clock that could be used as the time base of the entire Player or Processor.
字段摘要 | |
---|---|
protected boolean |
prerolling
|
protected float |
rate
|
protected long |
stopTime
|
从类 com.sun.media.BasicModule 继承的字段 |
---|
controller, inputConnectors, inputConnectorsArray, jmd, moduleListener, name, outputConnectors, outputConnectorsArray, prefetchFailed, protocol, resetted |
构造方法摘要 | |
---|---|
BasicSinkModule()
|
方法摘要 | |
---|---|
void |
doneReset()
|
void |
doSetMediaTime(Time t)
This function notifies the module that the media time has changed. |
float |
doSetRate(float r)
This function notifies the module that the playback rate has changed. |
void |
doStart()
This function performs the steps to start a module or Player. |
void |
doStop()
This function performs the steps to stop a module or Player, and return to the prefetched state. |
Clock |
getClock()
|
long |
getMediaNanoseconds()
Return the current time in nanoseconds. |
Time |
getMediaTime()
Return the current Media time. |
TimeBase |
getTimeBase()
|
protected void |
setClock(Clock c)
|
void |
setPreroll(long wanted,
long actual)
Enable prerolling. |
void |
setStopTime(Time t)
|
void |
setTimeBase(TimeBase tb)
|
void |
triggerReset()
|
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
protected boolean prerolling
protected float rate
protected long stopTime
构造方法详细信息 |
---|
public BasicSinkModule()
方法详细信息 |
---|
public void doStart()
BasicModule
复制的描述
StateTransistor
中的 doStart
BasicModule
中的 doStart
public void doStop()
BasicModule
复制的描述
StateTransistor
中的 doStop
BasicModule
中的 doStop
public void doSetMediaTime(Time t)
BasicModule
复制的描述
StateTransistor
中的 doSetMediaTime
BasicModule
中的 doSetMediaTime
public float doSetRate(float r)
BasicModule
复制的描述
StateTransistor
中的 doSetRate
BasicModule
中的 doSetRate
public void setTimeBase(TimeBase tb) throws IncompatibleTimeBaseException
IncompatibleTimeBaseException
public TimeBase getTimeBase()
public Time getMediaTime()
BasicModule
复制的描述
BasicModule
中的 getMediaTime
public long getMediaNanoseconds()
BasicModule
复制的描述
BasicModule
中的 getMediaNanoseconds
public Clock getClock()
protected void setClock(Clock c)
public void setStopTime(Time t)
public void setPreroll(long wanted, long actual)
t
- the media time when the prerolling starts. Let's say the
the requested media time is set to 100 and the current location is
set to 90 (the previous key frame where the parser can seek to). The
parameter t should be set to 90.public void triggerReset()
public void doneReset()
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |