FileDocCategorySizeDatePackage
StateTransistor.javaAPI DocJMF 2.1.1e2090Mon May 12 12:20:48 BST 2003com.sun.media

StateTransistor

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

Fields Summary
Constructors Summary
Methods Summary
public voidabortPrefetch()
Called when the prefetch() is aborted, i.e. deallocate() was called while prefetching. Release all resources claimed previously by the prefetch call.

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

public voiddoClose()
This function performs the steps to close a module or Player.

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

public voiddoFailedPrefetch()
Called when prefetch fails.

public voiddoFailedRealize()
Called when realize fails.

public booleandoPrefetch()
This function performs the steps to prefetch a module or Player.

return
true if successful.

public booleandoRealize()
This function performs the steps of realizing a module or a Player.

return
true if successful.

public voiddoSetMediaTime(javax.media.Time t)
This function notifies the module that the media time has changed.

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

public voiddoStart()
This function performs the steps to start a module or Player.

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