[Live-devel] RTSP Server question regarding async I/O

Ross Finlayson finlayson at live555.com
Fri Dec 15 15:04:11 PST 2017



> On Dec 16, 2017, at 11:33 AM, Rob Cole <Rob.Cole at alertinnovation.com> wrote:
> 
> Hello,
>  
> I have been using live555 to build a RTSP server.  I have reviewed hundreds of questions on this list, it’s a big help.  I have followed some suggestions about spinning up a separate async thread to handle the blocking I/O, then thread calls  triggerEvent() to signal live555 that data is ready.
>  
> I was under the impression this would cause doGetNextFrame() method to be invoked, but what I am actually seeing is the deliverFrame() method being invoked instead.  Is this right ? 

The function that will get called is whatever function you registered as the parameter to the “createEventTrigger()” call (when you created the ‘event trigger’).

See, for example, the model code in “liveMedia/DeviceSource.cpp”, where the function that’s registered/called is “deliverFrame0()”.


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




More information about the live-devel mailing list