com.sun.media
类 BasicSinkModule

java.lang.Object
  继承者 com.sun.media.BasicModule
      继承者 com.sun.media.BasicSinkModule
所有已实现的接口:
Module, StateTransistor, Controls
直接已知子类:
BasicMuxModule, BasicRendererModule

public abstract class BasicSinkModule
extends BasicModule

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()
           
 
从类 com.sun.media.BasicModule 继承的方法
abortPrefetch, abortRealize, canRun, connectorPushed, doClose, doDealloc, doFailedPrefetch, doFailedRealize, doPrefetch, doRealize, error, getControl, getController, getControls, getInputConnector, getInputConnectorNames, getLatency, getName, getOutputConnector, getOutputConnectorNames, getProtocol, getState, isInterrupted, isThreaded, prefetchFailed, process, registerInputConnector, registerOutputConnector, reset, setController, setFormat, setJMD, setModuleListener, setName, setProtocol, verifyBuffer
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

prerolling

protected boolean prerolling

rate

protected float rate

stopTime

protected long stopTime
构造方法详细信息

BasicSinkModule

public BasicSinkModule()
方法详细信息

doStart

public void doStart()
从类 BasicModule 复制的描述
This function performs the steps to start a module or Player.

指定者:
接口 StateTransistor 中的 doStart
覆盖:
BasicModule 中的 doStart

doStop

public void doStop()
从类 BasicModule 复制的描述
This function performs the steps to stop a module or Player, and return to the prefetched state.

指定者:
接口 StateTransistor 中的 doStop
覆盖:
BasicModule 中的 doStop

doSetMediaTime

public void doSetMediaTime(Time t)
从类 BasicModule 复制的描述
This function notifies the module that the media time has changed.

指定者:
接口 StateTransistor 中的 doSetMediaTime
覆盖:
BasicModule 中的 doSetMediaTime

doSetRate

public float doSetRate(float r)
从类 BasicModule 复制的描述
This function notifies the module that the playback rate has changed.

指定者:
接口 StateTransistor 中的 doSetRate
覆盖:
BasicModule 中的 doSetRate

setTimeBase

public void setTimeBase(TimeBase tb)
                 throws IncompatibleTimeBaseException
抛出:
IncompatibleTimeBaseException

getTimeBase

public TimeBase getTimeBase()

getMediaTime

public Time getMediaTime()
从类 BasicModule 复制的描述
Return the current Media time.

覆盖:
BasicModule 中的 getMediaTime

getMediaNanoseconds

public long getMediaNanoseconds()
从类 BasicModule 复制的描述
Return the current time in nanoseconds.

覆盖:
BasicModule 中的 getMediaNanoseconds

getClock

public Clock getClock()

setClock

protected void setClock(Clock c)

setStopTime

public void setStopTime(Time t)

setPreroll

public void setPreroll(long wanted,
                       long actual)
Enable prerolling.

参数:
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.

triggerReset

public void triggerReset()

doneReset

public void doneReset()