|
|
#1 |
|
Junior Member
Join Date: Jun 2002
Location: Montreal
Posts: 2
|
Streaming with java
I'm builded a SwingApplet that displays last songs played and some statistics.
Now I want to add a button that connect to the stream and play my station through the applet, so I won't need winamp to listen to it. I think I can use the javax.sound.sampled class to do it (AudioInputStream...) but I don't know exactly how. I DL some free codes but they belong to complexes API and I don't know what is doing what and I can't get it to work. Your solution would be strongly appreciate. Bye everyone. |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jun 2002
Location: Montreal
Posts: 2
|
Sample of my code
public Player(){
try{ m_audioInputStream = AudioSystem.getAudioInputStream( new URL ("http", "www.myURL.com", 8000, "") ); ... The program exit after that line, heres the error message : javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input stream I tried ... new URL("http", "www.myURL.com", 8000, "listen.pls"); and it's not working either. please HELP ME |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
|
I think that only gets a wave stream, not an mp3 stream
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|