Playing an audiostream in an applet.
I want to play a continuous audiostream in an applet. The stream is provided by an Axis camera and it is retrieved by opening an URL which accesses a GGI file (<ip address>/blah-blah/receive.cgi. The incoming stream is in .au format.
If I open a InputStream from this URL, then create an AudioInputStream from it, it throws an exception (could not get audio input stream from input stream ). I assume it is expecting a file not a stream from that URL. However, if I put the data in a file, I can play that file later as an AudioInputStream.
Is there a way to play the stream in real-time? (maybe create a pipe file which is written from the camera and read by the AudioPlayer?)
Any suggestions are welcome.