Hi Ian,<br>Thanks for response.<br>I am not using .net , I am using vc++ 6.0. <br>And I am not able to find any c/c++ library for windows which stream http. Some are availble to download the whole http file, but it is not my requirement.
<br>If any other member has developed ogg stream player for windows before and can give me any pointers, it would be great help for me.<br><br>Thanks,<br>Tapesh.<br><br><div><span class="gmail_quote">On 9/1/06, <b class="gmail_sendername">
Ian Malone</b> <<a href="mailto:email@example.com">firstname.lastname@example.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Tapesh Goyal wrote:<br>> Hi,<br>> I am a newbie and devloping a basic ogg player. I have taken help from this<br>> turorial:<br>> <a href="http://www.devmaster.net/articles/openal-tutorials/lesson8.php">http://www.devmaster.net/articles/openal-tutorials/lesson8.php
</a><br>> Thanks to jesse.<br>><br>> It is using openAL and ogg sdk. I am able to compile and execute this<br>> sample<br>> perfactly fine. And ogg file on disk is playing perfactly fine. This<br>> tutorial is using 2 buffers for streaming.
<br>><br>> My requirement is to play file through URL like<br>> <a href="http://mp3stream.wfmu.org:8008/wfmu.ogg">http://mp3stream.wfmu.org:8008/wfmu.ogg</a>. But when I am trying to do that<br>> fopen is failing in following code.
<br>> if(!(oggFile = fopen(path.c_str(), "rb")))<br>> throw string("Could not open Ogg file.");<br>><br>> As fopen gives handel for files which are on disk only.<br>><br>> So can anybody help me How to play a file using URL in windows? Any code
<br>> snippet/tutorial would be highly appriciated .<br>> Is this tutorial works fine to play ogg streams through URL ?<br>><br>><br><br>If you have a .Net or Mono environment you may want to look at the<br>WebRequest class and derivatives. I haven't used this myself,
<br>but I think you can get the resource as a stream.<br><<a href="http://msdn2.microsoft.com/en-us/library/system.net.webrequest.aspx">http://msdn2.microsoft.com/en-us/library/system.net.webrequest.aspx</a>><br>Otherwise you need to find a C or C++ library that can retrieve files