FileDocCategorySizeDatePackage
ModuleListener.javaAPI DocJMF 2.1.1e2619Mon May 12 12:20:50 BST 2003com.sun.media

ModuleListener

public interface ModuleListener
ModuleListener is an interface for handling asynchronous events generated by Modules.

Java Beans Support

If implementations of this interface are going to be used with Java Beans they need to also implement either java.util.EventListener or sunw.util.EventListener.
see
Module
version
1.14, 02/08/21

Fields Summary
Constructors Summary
Methods Summary
public voidbufferPrefetched(com.sun.media.Module from)
This method is called when the module has prefetched all the data.

public voiddataBlocked(com.sun.media.Module from, boolean blocked)
This method is called when the module detected a data blockage.

param
blocked is set to true if the data is blocked, false if the data has been blocked but have now be released.

public voidformatChanged(com.sun.media.Module from, javax.media.Format oldFormat, javax.media.Format newFormat)
This method is called when a format change has occurred and the module has successfully coped with it.

public voidformatChangedFailure(com.sun.media.Module from, javax.media.Format oldFormat, javax.media.Format newFormat)
This method is called when a format change has occurred and the Module has failed to deal with it.

public voidframesBehind(com.sun.media.Module from, float framesBehind, com.sun.media.InputConnector ic)
This method is called when a module detects frame delay. The number returned is the # of frames behind detected.

public voidinternalErrorOccurred(com.sun.media.Module from)
This method is called when an irrecoverable internal error has occurred either on the plugin or on the controlling module.

public voidmarkedDataArrived(com.sun.media.Module from, javax.media.Buffer buffer)
This method is called when a buffer with the marker bit set arrives.

public voidmediaEnded(com.sun.media.Module from)
This method is called when the module has reached the end of media.

public voidpluginTerminated(com.sun.media.Module from)
This method is called when the plugin controlled by the module has been closed.

public voidresetted(com.sun.media.Module from)
This method is called when the module has been resetted.

public voidstopAtTime(com.sun.media.Module from)
This method is called when the module has reached the scheduled stop time.