<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class="">The RTSP spec allows a server to provide multiple transport options for a single stream, e.g, unicast or multicast, but I can't figure out how to do this with the live555 library.<br class=""></blockquote><div><br class=""></div>You can’t.  The server (specifically, the “ServerMediaSubsession” object, identified by ‘stream name’) specifies the characteristics of the stream (including whether it’s unicast or multicast).</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">Currently I am creating two streams for the same (live) source and appending either '_unicast' or '_multicast' to the URL</div></blockquote><div><br class=""></div>Yes, this is the way to do it (i.e., using different stream names, with a “PassiveServerMediaSubsession” for multicast, and a “OnDemandServerMediaSubsession” (subclass) for unicast).  Note that you can use a “StreamReplicator” to make two copies of your live source; delivering one copy to the “PassiveServerMediaSubsession”, and the other copy to your “OnDemandServerMediaSubsession” (subclass, with “reuseFirstSource” True).</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">I'm surprised that I haven't been able to find anything relating to this since I guess it would be a common requirement?</div></blockquote><div><br class=""></div>Actually, it’s not :-)</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class=""> I did notice that the live555mediaserver doesn't support it which suggests that the library doesn't support this either? but openRTSP does support explicitly requesting a multicast stream.<br class=""></div></blockquote><div><br class=""></div></div>Note, FYI, this email from January 2007:<div class=""><span class="Apple-tab-span" style="white-space:pre">      </span><a href="http://lists.live555.com/pipermail/live-devel/2007-January/005776.html" class="">http://lists.live555.com/pipermail/live-devel/2007-January/005776.html</a></div><br class=""><br class=""><div apple-content-edited="true" class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">Ross Finlayson<br class="">Live Networks, Inc.<br class=""><a href="http://www.live555.com/" class="">http://www.live555.com/</a></span></span>
</div>
<br class=""></body></html>