How do I play audio stream from the web? Is it possible?
The scenario is we'll be downloading audio file from the Internet but can't wait for it to be completely downloaded, so I want to play while it is streamed?
BTW, we are using Springware boards.
Examples will be really appreciated :)
-Thanks
In general you probably want to look at UIO function calls in the voice api manuals. This allows a prograam to define their own "user defined I/O" for playing and recording audio. It can stream from file or memory.
UIO allows you to over-ride the default read, write, and seek functions and input your own data buffers.
Also another web related for streaming is a protocol called RTSP "Real Time Streaming Protocol". If the web server supports this protocol, this is another option. We have two app notes that might be useful.
- DL
Can't we stream with the dx_playiottdata() function? Are there any examples, (using Analog aur ISDN protocols)?
Hi:
I don't happen to have sample code. A good guide is to look at the dx_setuio() function in the voice API libary guide. You'll find basic sample code in the function description.
http://www.dialogic.com/manuals/docs/voice_api_v2.pdf