> I was trying to write a test program that contains a ServerMediaSession > subclass which encapsulates a PassiveServerMediaSubsession
I think you may be misunderstanding how these two classes work. A "ServerMediaSession" object represents a complete media stream (which can include one or more audio and/or video tracks), which is accessible - by name - via a RTSP server. Each "ServerMediaSession" object is added to a "RTSPServer" object, so that it can be accessed by clients. You should not need to subclass "ServerMediaSession". Each "ServerMediaSession" object contains one or more "ServerMediaSubsession" objects - one for each (audio and/or video) track in the stream. Furthermore, there are two kinds of "ServerMediaSubsession" objects: - A "PassiveServerMediaSubsession" represents a media data stream that already exists. This is usually a multicast stream. You usually don't need to subclass "PassiveServerMediaSubsession". - An "OnDemandServerMediaSubsession" represents a stream that is transmitted - via unicast - as a separate data stream, to each client that requests it. "OnDemandServerMediaSubsession" is always subclassed, depending on the particular media type (codec) and input source that you use for the stream. The "LIVE555 Streaming Media" code contains several examples of "OnDemandServerMediaSubsession" that can be used when streaming from files; developers can also write their own "OnDemandServerMediaSubsession" subclasses for streaming from other kinds of data source (e.g., an audio or video encoder). But anyway, let's start from the beginning. Forget for a moment whatever code you've already written. What, specifically, do you want your test program to do? Ross Finlayson Live Networks, Inc. http://www.live555.com/
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel