Tapesh Goyal
2006-Oct-20 22:40 UTC
[Vorbis] Problem in devloping basic ogg streaming player for windows-Please help
Hi, I am devloping a basic ogg player. I have taken help from this turorial: http://www.devmaster.net/articles/openal-tutorials/lesson8.php Thanks to jesse. It is using openAL and ogg sdk. I am able to compile and execute this sample perfactly fine. And ogg file on disk is playing perfactly fine. This tutorial is using 2 buffers for streaming. My requirement is to play file through URL like http://mp3stream.wfmu.org:8008/wfmu.ogg. But when I am trying to do that fopen is failing in following code. if(!(oggFile = fopen(path.c_str(), "rb"))) throw string("Could not open Ogg file."); As fopen gives handel for files which are on disk only. So can anybody help me How to play a file using URL in windows? Any code snippet/tutorial would be highly appriciated . Is this tutorial works fine to play ogg streams through URL ? Thanks, Tapesh. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis/attachments/20060901/949e99a4/attachment.html
Ralph Giles
2006-Oct-21 12:34 UTC
[Vorbis] Problem in devloping basic ogg streaming player for windows-Please help
On Fri, Sep 01, 2006 at 06:05:35PM +0530, Tapesh Goyal wrote:> So can anybody help me How to play a file using URL in windows? Any code > snippet/tutorial would be highly appriciated . > Is this tutorial works fine to play ogg streams through URL ?No, as you say, the tutorial uses fopen() which only works for local disk files. You have to use an http library to open a URL. I'm not familiar with Windows APIs, so I don't have any specific advice. A quick look at msdn suggests 'HttpOpenRequest()' and subsequent calls might be a good place to start. (WinINet library) You'd use this together with ov_open_callbacks() to feed data from the http stream to libvorbisfile. HTH, -r
Seemingly Similar Threads
- Problem in devloping basic ogg streaming player for windows-Please help
- Problem in devloping basic ogg streaming player for windows-Please help
- Problem in devloping basic ogg streaming player for windows-Please help
- WFMU has added an Ogg Vorbis stream
- Delay playing some streams on Android