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.

