I'm trying to do a simple mp3 player,everything is perfect, just I have one problem I can't do (Play) the streaming radio mp3, where i do button 'play' i get this message:
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@c88f97
Error: Unable to realize com.sun.media.PlaybackEngine@c88f97
this is my code :
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
String radiourl = direccionurl.getText();
URL url;
try {
url = new URL(radiourl);
openFile(url);
} catch (MalformedURLException ex) {
Logger.getLogger(VentanaInicio.class.getName()).log(Level.SEVERE, null, ex);
}
p.start();
}
public void openFile(URL url){
try{
p = Manager.createPlayer(url);
p.start();
}catch (Exception o){
o.printStackTrace();
}
}