To get the JMF 2.1.1 Reference Implementation so you can run these applets, go to the JMF Download page.
Thanks to New Line Cinema for providing the content for these movie clips.
Note: These movie clips are optimized for web access at the expense of audio and video quality. (The file sizes are minimized so that the movies download more quickly.)
TVApplet is a simple applet that demonstrates how to create a media player to present a media clip. This applet displays the player's visual and control panel components over a background image.
The name of the file is passed in as a parameter in the applet tag used to display the applet. The Applet tag for TVApplet looks something like:
<applet code=TVApplet.class width=587 height=510> <param name=file value="media/playme.mov"> </applet>
Java Plug-In Enabled Sample
SimplePlayerApplet is a simple applet that can be used to run a JMF player for a particular media file. This applet embeds the visual component and control panel component in the browser page, if they are available.
The URL for the media file is passed in as a parameter in the applet tag used to display the applet. The Applet tag for SimplePlayerApplet looks something like:
<applet code=SimplePlayerApplet.class width=640 height=510> <param name=file value="file:/usr/local/media/playme.mpg"> </applet>
Java Plug-In Enabled Sample (for Browsers that are not JDK 1.1 compatible)