> I am trying to implement a media server to stream also live sessions 
> constructed 'on the fly'.
> Analyzing the behaviour of DynamicRTSPServer contained in live555MediaServer, 
> I noted that when a client demand a stream to the server (i.e a 264 stream 
> file),  lookupServerMediaSession is called twice, both with 
> isFirstLookupInSession = true.
> What is the meaning of this double call?

The first call to “lookupServerMediaSession()” is done (by the server) to 
implement the RTSP “DESCRIBE” command.

Subsequent calls to "lookupServerMediaSession()” are done to implement the RTSP 
“SETUP” command - for each media track (audio, video, etc.) in the stream.  
(Note that if a stream contains both an audio track and a video track, then 
there will be a RTSP “SETUP” command for each.)  In this case, the first call 
to "lookupServerMediaSession()” (for the first track) has the 
“isFirstLookupInSession” parameter as True.  Any other calls to 
"lookupServerMediaSession()” (for subsequent tracks) will have the 
“isFirstLookupInSession” parameter as False.

The purpose of this code was to ensure that streaming from multi-track files 
works properly.


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

_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to