All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ejmf.examples.genericplayer.GenericPlayer

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

public class GenericPlayer
extends PlayerDriver
implements ControllerListener
This example implements a generic media player. It will initially display a message indicating that the media is loading. When the player has been realized, the media components are added and the player is started.

See Also:
PlayerPanel

Constructor Index

 o GenericPlayer()

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 controllerUpdate(ControllerEvent)
This controllerUpdate function must be defined in order to implement a ControllerListener interface.
 o main(String[])

Constructors

 o GenericPlayer
 public GenericPlayer()

Methods

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

Overrides:
begin in class PlayerDriver
 o controllerUpdate
 public synchronized void controllerUpdate(ControllerEvent event)
This controllerUpdate function must be defined in order to implement a ControllerListener interface. This function will be called whenever there is a media event.

Parameters:
event - the media event

All Packages  Class Hierarchy  This Package  Previous  Next  Index