[Live-devel] RTPSource server example

Ross Finlayson finlayson at live.com
Thu Apr 21 16:48:41 PDT 2005


>I am interested in developing a server that receives an RTP stream as input.

Are you trying to develop some sort of proxy - i.e., a RTSP server that 
works by (transparently) acting as a client?

If so, then you will want to subclass "ServerMediaSubsession" (more 
precisely, "OnDemandServerMediaSubsession"), *not* 
"ServerMediaSession".  E.g., note how "FileServerMediaSubsession" is 
defined.  You will want to do something similar, except using a "RTPSource" 
(rather than a file name) as parameter.

Of course, as with all subclasses of "OnDemandServerMediaSubsession", you 
will need to provide an implementation of the pure virtual functions 
"createNewStreamSource()" and "createNewRTPSink()".


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list