[Live-devel] bytestreamFileSource, doGetNextFrame, and events

Jay Furmanek jayfurmanek at gmail.com
Wed May 2 16:28:53 PDT 2007


I can do that, but how do I handle remaining bytes if I read past the
delimiter.

I'll parse up to the delimiter, kick all those bytes into fTo and call
afterGetting().
Do I need to handle the remaining bytes myself? or is there a mechanism for
it?

Thanks for all your help.
-j.

On 5/2/07, Ross Finlayson <finlayson at live555.com> wrote:
>
> >From looking at examples in the code, if I were to use
> >fInputSource->getNextFrame(), it looks like I would do my processing
> >in afterGettingFrame() then, correct?
>
> Yes.
>
> >
> >I wouldnt know how many bytes to tell the getNextFrame() call to
> >get, though, since I have just a delimited elemtary stream coming
> >from the file.
>
> You should request as many bytes as you have space available in your
> buffer (that you'll be using to do the parsing).
>
> >
> >Im thinking that telling getNextFrame to get 1 byte at a time
> >wouldnt be very efficient, but I need to check one byte at a time
> >for the 3-byte delimiter.
>
> You should read large chunks of data, into a buffer.
> --
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20070502/76584c74/attachment-0001.html 


More information about the live-devel mailing list