[Live-devel] bytestreamFileSource, doGetNextFrame, and events
Ross Finlayson
finlayson at live555.com
Wed May 2 15:28:03 PDT 2007
>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/
More information about the live-devel
mailing list