<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Live-devel] Multicast session
question</title></head><body>
<blockquote type="cite" cite><font face="Arial" size="-1">Following my
previous questions I want to create a situation where one source is
sent to two different multicast address.</font><br>
</blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">For that I
am using passiveMediaSubsession where I add both destination to the
sink.</font><br>
</blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">I want to
generate 2 sessions that whoever asks "describe" for the
first will receive in the sdp the first multicast address,</font><br>
</blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">and whoever
asks "describe" for the second session will receive in the
sdp the second multicast address.</font></blockquote>
<div><br></div>
<div>It sounds like you need your own "ServerMediaSubsession"
subclass, similar to (but different from)
"PassiveServerMediaSubsession".</div>
<div><br></div>
<div>In particular, you will need to write your own implementation of
the "getStreamParameters()" virtual function. Each
call to this function can result in a different multicast address
being used (if that's what you want). You can also use the
"clientSessionId" parameter to distinguish between clients,
so that your other virtual functions can know which client was given
which multicast address.</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>