Home
Up

MP3

The MP3 for  JavaSound Guide

  1. There is a free mp3 plugin for JavaSound and JMF. It can be downloaded from SUN here.
     
  2. To use with JavaSound all you have to do is put the jar file in the classpath of the application. It can also be put in the lib/ext folder of a java installation for use with all programs.
     
  3. To use with JMF all you have to do is call new JavaDecoder() at the start of your code to register the new MP3 codec with JMF.
     
  4. That's it. Enjoy.
     
  5. Here is an some demos using the Sun MP3 plugin to play a mp3 file, (works whether JMF is installed or not):

Notes:

  1.  All four demos are drag and drop enabled.
  2. Optimized versions play any file Windows Media Player can play when run on the Windows operating system.

 

If you have any comments that you would like to add  please email us.

last modified: Friday, 18. February 2005