Yes the RTP and RTCP ports could be obtained by parsing the SDP however that's rather ugly and inefficient don't you think? The new code is implemented in the OnDemandServerSubsession class. We couldn't just subclass OnDemandServerSubsession as the information is keep in the StreamState class which is only defined in OnDemandServerSubSession.cpp instances of which are keep and referenced via opaque void pointers else where in the code. So we had to implement new accessors on OnDemandServerSubsession to get at the data in the StreamState object associated with the session id.

The other option would have been to move the definition of StreamState to a header file and expose that structure to the rest of the code. We felt that the path we choose was less invasive and more in line with how the code works now.

Matt S.

Gabriele De Luca wrote:
In answer to Matt Schuckmann:
I think that RTCP client port can be set from SDP description 
(MediaSession).See RFC 3650.
For the server RTCP port I think that can be implemented in the object OnDemandServerSubsession. What do you think Ross?



_________________________________________________________________
Quante ne sai? Gioca con i 50 nuovi schemi di CrossWire!
http://livesearch.games.msn.com/crosswire/play_it/
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to