[Live-devel] about the openRTSP

Ross Finlayson finlayson at live555.com
Tue Mar 24 01:24:32 PDT 2009


>I have a question about the openRTSP. In the  end of the function 
>startPlayingStreams, there is :
>   // Watch for incoming packets (if desired):
>   checkForPacketArrival(NULL);
>   checkInterPacketGaps(NULL);
>
>      My question is whether the video or audio packets haved been 
>rececived here.

The first time that these functions are called, no RTP (audio or 
video) packets will have been received yet (because the event loop 
hasn't yet started; see below).  Notice, though, that each of these 
functions - at the very end of their code - reschedules another call 
to itself, from the event loop, after a short delay.  I.e., each of 
these functions gets called periodically.


>  If the packets are received here, then what is
>the difference between the role of   the function 
>startPlayingStreams and the function taskScheduler().doEventLoop()
>in reveiving the packets.

No incoming packets actually get handled until "doEventLoop()" is 
called (because the arrival of each incoming packet is handled as an 
'event' from within the event loop).
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090324/4211d831/attachment.html>


More information about the live-devel mailing list