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.
-
PlayerDriver()
- Constructs a PlayerDriver.
-
begin()
- An abstract method that should be overridden to begin the
playback of the media once the GUI layout has taken place.
-
destroy()
- This method is called by browser when page is left.
-
getFrame()
- Gets the Frame in which the media is being displayed.
-
getPlayerPanel()
- Gets the PlayerPanel for this PlayerDriver.
-
init()
- This method is run when PlayerDriver is an applet.
-
initialize(MediaLocator)
- Initializes the PlayerDriver with the given MediaLocator.
-
main(PlayerDriver, String[])
- Should be called by the real main() once a PlayerDriver
has been constructed for the given arguments.
-
pack()
-
-
redraw()
- Redraws the Frame containing the media.
PlayerDriver
public PlayerDriver()
- Constructs a PlayerDriver.
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.
init
public void init()
- This method is run when PlayerDriver is an applet.
- Overrides:
- init in class Applet
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
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.
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.
getFrame
public JFrame getFrame()
- Gets the Frame in which the media is being displayed.
getPlayerPanel
public PlayerPanel getPlayerPanel()
- Gets the PlayerPanel for this PlayerDriver.
pack
public void pack()
redraw
public void redraw()
- Redraws the Frame containing the media.
All Packages Class Hierarchy This Package Previous Next Index