[Vorbis-dev] ogg audio streaming problem

xiphmont at xiph.org xiphmont at xiph.org
Mon Jun 8 19:55:11 PDT 2009


> My application is as follows:
> I send download request to server,and server sends the download ogg file to
> client side.
> when  a certain amount of data is downloaded, and I start to play the ogg
> file by using a library.

[...]

You've set up the code to treat the file as seekable and complete.

> I think the problem is vf->seekable = 1.
> if the vf->seekable = 1, is it the problem for streaming? How can I achieve
> ogg streaming?

Yes.  In your case I think the easiest way to do streaming is to pass
in a seek callback of 'NULL'.  Vorbisfile will detect that seeking
isn't possible and treat the file as a progressive stream.

Monty


More information about the Vorbis-dev mailing list