com.sun.media
接口 StateTransistor

所有已知实现类:
BasicFilterModule, BasicModule, BasicMuxModule, BasicRendererModule, BasicSinkModule, BasicSourceModule

public interface StateTransistor

StateTransistor is an interface with the functionality of performing the actual state transitions: DoPrefetch, DoRealize, etc.


方法摘要
 void abortPrefetch()
          Called when the prefetch() is aborted, i.e. deallocate() was called while prefetching.
 void abortRealize()
          Called when the realize() is aborted, i.e. deallocate() was called while realizing.
 void doClose()
          This function performs the steps to close a module or Player.
 void doDealloc()
          This function performs the steps to deallocate a module or Player, and return to the realized state.
 void doFailedPrefetch()
          Called when prefetch fails.
 void doFailedRealize()
          Called when realize fails.
 boolean doPrefetch()
          This function performs the steps to prefetch a module or Player.
 boolean doRealize()
          This function performs the steps of realizing a module or a Player.
 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.
 

方法详细信息

doRealize

boolean doRealize()
This function performs the steps of realizing a module or a Player.

返回:
true if successful.

doFailedRealize

void doFailedRealize()
Called when realize fails.


abortRealize

void abortRealize()
Called when the realize() is aborted, i.e. deallocate() was called while realizing. Release all resources claimed previously by the realize() call.


doPrefetch

boolean doPrefetch()
This function performs the steps to prefetch a module or Player.

返回:
true if successful.

doFailedPrefetch

void doFailedPrefetch()
Called when prefetch fails.


abortPrefetch

void abortPrefetch()
Called when the prefetch() is aborted, i.e. deallocate() was called while prefetching. Release all resources claimed previously by the prefetch call.


doStart

void doStart()
This function performs the steps to start a module or Player.


doStop

void doStop()
This function performs the steps to stop a module or Player, and return to the prefetched state.


doDealloc

void doDealloc()
This function performs the steps to deallocate a module or Player, and return to the realized state.


doClose

void doClose()
This function performs the steps to close a module or Player.


doSetMediaTime

void doSetMediaTime(Time t)
This function notifies the module that the media time has changed.


doSetRate

float doSetRate(float r)
This function notifies the module that the playback rate has changed.