Audio streaming from URL

Hi friends,

Currently imdoing a project in online radio streaming.I have some problems in my coding.Will anyone help me to find out?or will anyone send me the codings,if u have?Below this program its showing error message as "COULD NOT CREATE AUDIO STREAM FROM INPUT STREAM".and how to use this continuous stream option.

publicstaticvoid main(String args[])throws IOException

{

try{

URL url=new URL("some url ");

HttpURLConnection h=(HttpURLConnection)url.openConnection();

h.connect();

AudioStream as =new AudioStream(url.openStream());

AudioData data =as.getData( );

ContinuousAudioDataStream cas =new ContinuousAudioDataStream (data);

AudioPlayer.player.start(as);

//AudioPlayer.player.stop(as);

}

catch(Exception e)

{

System.out.println("Unable to Connect :"+e);

}

If anyone knows plz send me the codings to my id: mskumar1984@gmail.com..Waiting for codings and suggestions.

[1524 byte] By [Mskumara] at [2007-11-27 6:26:31]
# 1
just visit http://javasolution.blogspot.com/2007/04/simple-application-for-voice.html
Arunssofta at 2007-7-12 17:47:29 > top of Java-index,Security,Cryptography...