[Live-devel] bytestreamFileSource, doGetNextFrame, and events

Ross Finlayson finlayson at live555.com
Wed May 2 13:08:53 PDT 2007


>I've learned from other posts that I need to implement a 
>doGetNextFrame function.
>I wanted to read the file asynchronously and have the doGetNextFrame 
>function just do a turnOnBackgroundReadHandling() on the file socket 
>so when the next frame is ready to be processed, the event loop will 
>kick me into a handler(deliverFrame) each time. The problem is, I 
>dont have access to the file descriptor to tell the event loop about 
>it.

I don't understand.  Can you access your file by name?  If so, then 
just use "ByteStreamFileSource" as is, and feed this into your 
"H264VideoStreamFramer" subclass.

You don't need to worry about file descriptors; the 
"ByteStreamFileSource" code takes care of this for you.
-- 

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


More information about the live-devel mailing list