All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ejmf.examples.basics.HelloWorld

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----ejmf.examples.basics.HelloWorld

public class HelloWorld
extends Applet
A class used to display a PlayerPanel as an applet or as an application. If run as an applet, the referring html document should define two applet paraeters:

1. MEDIA -- the media url or file to play

If run as an application, the PlayerPanel and media file/url should be given as arguments.

Example file (when run as an applet):

 < applet code=ejmf.toolkit.util.PlayerDriver.class width=570 height=570>
 < param name=PLAYERPANEL value=com.MyCompany.jmf.MyPlayerPanel>
 < param name=MEDIA value=xmas.avi>
 < /applet>
 
Example command-line invocation (when run as an application):

 java ejmf.examples.genericplayer.PlayerDriver com.MyCompany.jmf.MyPlayerPanel xmas.avi
 
If the given class does not descend from PlayerPanel, or if the given class cannot be instantiated with a single URL as an argument, an error message is printed and the HelloWorld returns immediately.


Constructor Index

 o HelloWorld()

Method Index

 o init()
This method is run when PlayerDriver is an applet.
 o main(String[])
This method is run when PlayerDriver is an application.

Constructors

 o HelloWorld
 public HelloWorld()

Methods

 o main
 public static void main(String args[])
This method is run when PlayerDriver is an application. Argument should be a media url or file argument

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

Overrides:
init in class Applet

All Packages  Class Hierarchy  This Package  Previous  Next  Index