Okay thanks for clarifying. I was actually just trying to model a media 
subsession based on what you did with the ProxyServerMediaSession and 
Subsession classes. They tied together very neat and was easy to add into the 
RTSPServer. But I see that this cannot work the same since I need to multicast.



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?

I have an incomplete spec, but one thing we are looking to have the ability to 
multicast an existing live source, possible from another RTSP server.
I do have this working, but only as proof of concept (code isn't well 
organized). What I am really trying to do is familiarize myself with the server 
classes within Live555, so that I might come up with a clean design.

What I was asking previously was really just for convenience sake. For example 
being able to create the RTPSink after I know the medium and codec that I am 
pulling in from the live source (i.e. if source is H264 I can then create the 
H264VideoRTPSink with the SPropParamSets overload) from within that SMS 
subclass. But nonetheless I can achieve this - just with a different flow.

Many thanks and I appreciate your quick response.

Kenneth Forsythe
Software Engineer
973-343-4907

Activu Corporation
301 Round Hill Drive | Rockaway, NJ 07866

Email<mailto:kenneth.forsy...@activu.com> | Website<http://www.activu.com/> | 
LinkedIn<http://linkedin.com/company/Activu> | 
Twitter<http://www.twitter.com/activu> | 
Facebook<http://www.facebook.com/activucorp>

The information contained in this e-mail and its attachments are privileged and 
confidential and may contain proprietary, copyrighted or other legally 
protected information which is intended solely for the use of the addressee(s). 
If you are not the intended recipient, you are hereby notified that any 
disclosure, use, copying or distribution of this communication is strictly 
prohibited.  Please notify the sender immediately and permanently delete this 
e-mail from your computer.

From: live-devel [mailto:live-devel-boun...@ns.live555.com] On Behalf Of Ross 
Finlayson
Sent: Thursday, January 22, 2015 11:09 AM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] Encapsulate PassiveMediaServerSubsession in a derived 
ServerMediaSession

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

Reply via email to