All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.awt.Component | +----java.awt.Container | +----java.awt.Panel | +----java.applet.Applet | +----ejmf.examples.basics.HelloWorld
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):
Example command-line invocation (when run as an application):< 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>
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.java ejmf.examples.genericplayer.PlayerDriver com.MyCompany.jmf.MyPlayerPanel xmas.avi
public HelloWorld()
public static void main(String args[])
public void init()
All Packages Class Hierarchy This Package Previous Next Index