[Live-devel] bytestreamFileSource, doGetNextFrame, and events

Ross Finlayson finlayson at live555.com
Wed May 2 14:01:04 PDT 2007


>Doesn't turnOnBackgroundReadHandling() require a file 
>descriptor/scoket as it's first argument?

Yes, but you should never need to call that function. 
"ByteStreamFileSource" does that automatically..

>  my doGetNextFrame() func calls turnOnBackgroundReadHandling()

No, don't do this.  Your "H264VideoStreamFramer" subclass is a 
filter.  It doesn't know anything about files.  You *initialiize* 
your subclass with your "ByteStreamFileSource" object (as the 
"inputSource" argument).

Then, in the implementation of your "doGetNextFrame()" function, call
	fInputSource->getNextFrame( ... );
to read from your source object (which just happens, in your case, to 
be a "ByteStreamFileSource").

Note that there are several examples of this in the code.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list