All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ejmf.toolkit.util.PlayerDriver

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----com.sun.java.swing.JApplet
                                           |
                                           +----ejmf.toolkit.util.PlayerDriver

public abstract class PlayerDriver
extends JApplet
The PlayerDriver class provides a basis for displaying a Java Media Player as either an applet or an application.


Constructor Index

 o PlayerDriver()
Constructs a PlayerDriver.

Method Index

 o begin()
An abstract method that should be overridden to begin the playback of the media once the GUI layout has taken place.
 o destroy()
This method is called by browser when page is left.
 o getFrame()
Gets the Frame in which the media is being displayed.
 o getPlayerPanel()
Gets the PlayerPanel for this PlayerDriver.
 o init()
This method is run when PlayerDriver is an applet.
 o initialize(MediaLocator)
Initializes the PlayerDriver with the given MediaLocator.
 o main(PlayerDriver, String[])
Should be called by the real main() once a PlayerDriver has been constructed for the given arguments.
 o pack()
 o redraw()
Redraws the Frame containing the media.

Constructors

 o PlayerDriver
 public PlayerDriver()
Constructs a PlayerDriver.

Methods

 o begin
 public abstract void begin()
An abstract method that should be overridden to begin the playback of the media once the GUI layout has taken place.

 o init
 public void init()
This method is run when PlayerDriver is an applet.

Overrides:
init in class Applet
 o destroy
 public void destroy()
This method is called by browser when page is left. Player must close or else it will continue to render even after having left the page. This can be an issue with audio.

Overrides:
destroy in class Applet
 o main
 public static void main(PlayerDriver driver,
                         String args[])
Should be called by the real main() once a PlayerDriver has been constructed for the given arguments.

 o initialize
 public void initialize(MediaLocator locator) throws IOException, NoPlayerException
Initializes the PlayerDriver with the given MediaLocator.

Throws: IOException
If an I/O error occurs while accessing the media.
Throws: NoPlayerException
If a Player cannot be created from the given MediaLocator.
 o getFrame
 public JFrame getFrame()
Gets the Frame in which the media is being displayed.

 o getPlayerPanel
 public PlayerPanel getPlayerPanel()
Gets the PlayerPanel for this PlayerDriver.

 o pack
 public void pack()
 o redraw
 public void redraw()
Redraws the Frame containing the media.


All Packages  Class Hierarchy  This Package  Previous  Next  Index