[ogg-dev] Re: [Vorbis-dev] Problem in devloping basic ogg streaming player for windows-Please help

illiminable ogg at illiminable.com
Sun Sep 3 04:48:49 PDT 2006


Hi,

If you install this...

www.illiminable.com/ogg/

Then this is about the simplest example player you'll find
http://svn.xiph.org/trunk/oggdsf/src/tools/CLOgg/CLOgg.cpp

See where it says

locHR = locGraphBuilder->RenderFile(L"g:\\a.ogg", NULL);


Change the filename to a url, and away you go.

If you want a more fully featured player library, then you can use this 
(also requires oggcodecs to be installed)

http://svn.xiph.org/trunk/oggdsf/src/lib/player/libDSPlay/

Zen.

Tapesh Goyal wrote:
> Hi Ian,
> Thanks for response.
> I am not using .net , I am using vc++ 6.0.
> 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.
> 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.
>
> Thanks,
> Tapesh.
>
> On 9/1/06, * Ian Malone* <ibmalone at gmail.com 
> <mailto:ibmalone at gmail.com>> wrote:
>
>     Tapesh Goyal wrote:
>     > Hi,
>     > I am a newbie and devloping a basic ogg player. I have taken
>     help from this
>     > turorial:
>     > http://www.devmaster.net/articles/openal-tutorials/lesson8.php
>     <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 ?
>     >
>     >
>
>     If you have a .Net or Mono environment you may want to look at the
>     WebRequest class and derivatives.  I haven't used this myself,
>     but I think you can get the resource as a stream.
>     <http://msdn2.microsoft.com/en-us/library/system.net.webrequest.aspx>
>     Otherwise you need to find a C or C++ library that can retrieve files
>     over http.
>
>     --
>     imalone
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ogg-dev mailing list
> ogg-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/ogg-dev
>   



More information about the Vorbis-dev mailing list