org.iso.mpeg.mpegj
Interface MPEGlet


public interface MPEGlet
extends java.lang.Runnable

This the interface that has to be implemented by a remote MPEG-J Application. This methods in this interface are very similar syntactically and semantically to the Applet Class, except that this is an interface and it extends the Runnable interface, so that it can be executed as separate thread. Note that there is no start method. This is because run() of the Runnable interface is used instead of start


Method Summary
 void destroy()
          Called by the MPEG-J player to inform the MPEGlet that is beinf reclaimed and that is should destroy any resources it has allocated.
 void init()
          Called by the MPEG-J player to inform the MPEGlet that it has been loaded into the system.
 void stop()
          Called by the MPEG-J player to inform the MPEGlet that it should stop its execution.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

init

public void init()
Called by the MPEG-J player to inform the MPEGlet that it has been loaded into the system. This is always called before the first time the MPEGlet is run as a separate by calling the run() method. Any initialization goes here.

stop

public void stop()
Called by the MPEG-J player to inform the MPEGlet that it should stop its execution. This always called before destroy() is called. This can also be called anytime the execution of the MPEGlet has to be stopped. Any operations before it is stopped should go in here.

destroy

public void destroy()
Called by the MPEG-J player to inform the MPEGlet that is beinf reclaimed and that is should destroy any resources it has allocated. The stop method will always be called before destroy. Any operations before it is destroyed should go in here.