playing mp3 files
Hey guys and gals
I am in a mini competition with a mate as to who make the best music player in java, we havnt done anythign like this before and never ever used soubnd
i understand you have to download the JMF and have doen so and successfully installed it, in fact i can pretty much get it working except for the following error
Unable to handle format: mpeglayer3, 44100.0 Hz, 16-bit, Stereo, LittleEndian,
Signed, 16000.0 frame rate, FrameSize=32768 bits
Failed to realize: com.sun.media.PlaybackEngine@182f0db
Error: Unable to realize com.sun.media.PlaybackEngine@182f0db
the code behind it is as follows
import javax.media.*;
import java.net.*;
publicclass MediaPlayer
{
publicstaticvoid main(String[] args)
{
MediaPlayer mp =new MediaPlayer();
}
public MediaPlayer()
{
try
{
Player player = Manager.createPlayer(new URL("http://localhost/test.mp3"));
player.start();
}
catch(Exception e)
{
System.out.println("ERROR");
}
}
}
any ideas are welcome

