Java
Java SE
|
Examples:
On Solaris:setenv JMFHOME /home/someuser/JMF2.1.1On AIX:
setenv CLASSPATH $JMFHOME/lib/jmf.jar:.:${CLASSPATH}setenv JMFHOME /usr/JMF2.1.1On Windows:
setenv CLASSPATH $JMFHOME/lib/jmf.jar:.:${CLASSPATH}set JMFHOME=C:\JMF2.1.1
set CLASSPATH=%JMFHOME%\lib\jmf.jar;.;%CLASSPATH%
You can use the JMF Diagnostics applet to verify that JMF is set up properly on your system.
You can run the samples using the JMStudio sample application or from a browser such as HotJava or Netscape Communicator. For more information, see the JMStudio User's Guide.
You can only play unicast and broadcast streams using RTPPlayerApplet. To play a multicast stream or to transmit, you need to use the JMStudio application. See the RTP release notes for more information.
JMF can be used with Netscape Communicator 4.06 or later, or with Netscape 4.03-4.05 with the JDK 1.1 patch. Setting your paths as described above should enable JMF to run with Communicator.
If a particular type of file doesn't work with Netscape, first check if the MIME type for this type of file is set correctly. By default, Netscape doesn't provide the settings for RMF ( audio/rmf) and GSM ( audio/x-gsm) files. In Communicator, you can add and modify the MIME types from the Edit->Preferences menu, in Navigator/Applications category.
JMFCustomizer requires Java 2 or JDK 1.1.* with the Swing 1.1 API technology to run. You'll need to add customizer.jar to your CLASSPATH path. (with JDK 1.1.*, you will also need to add Swing 1.1 classes to your CLASSPATH as well). For example:
On Solaris:setenv JMFHOME /home/someuser/JMF2.1.1On AIX:
setenv CLASSPATH $JMFHOME/lib/jmf.jar:$JMFHOME/lib/customizer.jar:.:${CLASSPATH}setenv JMFHOME /usr/JMF2.1.1On Windows:
setenv CLASSPATH $JMFHOME/lib/jmf.jar:$JMFHOME/lib/customizer.jar:.:${CLASSPATH}set JMFHOME=C:\JMF2.1.1
set CLASSPATH=%JMFHOME%\lib\jmf.jar;%JMFHOME%\lib\customizer.jar;.;%CLASSPATH%
To run, invoke
java JMFCustomizer