Methods Summary |
---|
public void | connectorPushed(com.sun.media.InputConnector inputConnector)A callback function denoting data was written to one of this Module input Connectors.
This function is needed in case of Push protocol
Typical reaction of the module is to process one frame in the calling thread and return.
|
public com.sun.media.InputConnector | getInputConnector(java.lang.String connectorName)Return the specified input connector. Connectors and their names
are typically constructed in the Module's constructor, but their construction
can be delayed until the Player Realizing state.
Returns null if the string doesn't match any of the Module's
InputConnectors.
|
public java.lang.String[] | getInputConnectorNames()Return an array of strings containing this Module's
input connectors names (both connected and unconnected).
If this Module contains no inputs an array of length zero
is returned.
|
public java.lang.String | getName()returns the name of this Module in the Player
|
public com.sun.media.OutputConnector | getOutputConnector(java.lang.String connectorName)Return the specified output connector. Connectors and their names
are typically constructed in the Module's constructor.
Returns null if the String doesn't match any of the Module's
OutputConnectors.
|
public java.lang.String[] | getOutputConnectorNames()Return an array of strings containing this Module's
output connectors names (both connected and unconnected).
If this Module contains no outputs an array of length zero
is returned.
|
public boolean | isInterrupted()Query to see if the module has just been interrupted.
|
public void | registerInputConnector(java.lang.String name, com.sun.media.InputConnector in)Each of the inputConnectors of this Module has to be
registered with this function.
This method also sets the Module reference of the Connector
|
public void | registerOutputConnector(java.lang.String name, com.sun.media.OutputConnector out)Each of the outputConnectors of this Module has to be
registered with this function.
This method also sets the Module reference of the Connector
|
public void | reset()Return the Module to its initial state.
A Module should call its Connectors reset method, and then clear its
internal buffers typically by calling the StateTransistor's method dealloc().
|
public void | setFormat(com.sun.media.Connector connector, javax.media.Format format)Selects a format for the Connector (the default is null).
The setFormat() method is typically called by the Manager
as part of the Connector connection method call.
Typically the connector would delegate this call to its owning Module.
|
public void | setJMD(com.sun.media.JMD jmd)Set the JMD debugger instance for the module to use.
|
public void | setModuleListener(com.sun.media.ModuleListener listener)Specify a ModuleListener to which this Module
will send events.
|
public void | setName(java.lang.String name)sets the name of this Module. Called by the owning Player registerModule() method
|