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> &lt;<a href="mailto:ibmalone@gmail.com">ibmalone@gmail.com</a>&gt; 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>&gt; Hi,<br>&gt; I am a newbie and devloping a basic ogg player. I have taken help from this<br>&gt; turorial:<br>&gt; <a href="http://www.devmaster.net/articles/openal-tutorials/lesson8.php">http://www.devmaster.net/articles/openal-tutorials/lesson8.php
</a><br>&gt; Thanks to jesse.<br>&gt;<br>&gt; It is using openAL and ogg sdk. I am able to compile and execute this<br>&gt; sample<br>&gt; perfactly fine. And ogg file on disk is playing perfactly fine. This<br>&gt; tutorial is using 2 buffers for streaming.
<br>&gt;<br>&gt; My requirement is to play file through URL like<br>&gt; <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>&gt; fopen is failing in following code.
<br>&gt; if(!(oggFile = fopen(path.c_str(), &quot;rb&quot;)))<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw string(&quot;Could not open Ogg file.&quot;);<br>&gt;<br>&gt; As fopen gives handel for files which are on disk only.<br>&gt;<br>&gt; So can anybody help me How to play a file using URL in windows?&nbsp;&nbsp;Any code
<br>&gt; snippet/tutorial would be highly appriciated .<br>&gt; Is this tutorial works fine to play ogg streams through URL ?<br>&gt;<br>&gt;<br><br>If you have a .Net or Mono environment you may want to look at the<br>WebRequest class and derivatives.&nbsp;&nbsp;I haven't used this myself,
<br>but I think you can get the resource as a stream.<br>&lt;<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>&gt;<br>Otherwise you need to find a C or C++ library that can retrieve files
<br>over http.<br><br>--<br>imalone<br></blockquote></div><br>