All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ejmf.examples.customcpplayer.CustomCPPlayer

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.customcpplayer.CustomCPPlayer

public class CustomCPPlayer
extends PlayerDriver
implements ControllerListener
CustomCPPlayer uses the StandardControlPanel to control the player. blockingRealize and blockPrefetch to ensure video image is before starting player. The begin method from PlayerPanel is over-ridden and is used to disable start button. The begin method does not start the player. Instead the start button starts the player.

See Also:
PlayerPanel, StandardControlPanel

Constructor Index

 o CustomCPPlayer()

Method Index

 o begin()
Creates new StandardControlPanel and adds it to the media panel.
 o controllerUpdate(ControllerEvent)
This controllerUpdate function must be defined in order to implement a ControllerListener interface.
 o main(String[])

Constructors

 o CustomCPPlayer
 public CustomCPPlayer()

Methods

 o main
 public static void main(String args[])
 o begin
 public void begin()
Creates new StandardControlPanel and adds it to the media panel. Queries player for visual component and adds it to the media panel.

Parameters:
media - URL naming a media source
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


All Packages  Class Hierarchy  This Package  Previous  Next  Index