<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="background-color: rgb(224, 224, 224); font-family: Arial; color: rgb(0, 0, 0); font-size: 10pt; position: static; z-index: auto; " background="" bgcolor="#e0e0e0"><div><font color="#005080" size="3" face="Trebuchet MS"><span class="197304913-02122011">I got multiple streams working but only if they are on
there own port. </span></font></div>
<div><font color="#005080" size="3" face="Trebuchet MS"><span class="197304913-02122011"></span></font> </div>
<div><font color="#005080" size="3" face="Trebuchet MS"><span class="197304913-02122011">I would like to have multiple streams on the same port,
and have them distinguished by the subsession URL.</span></font></div></div></blockquote><div><br></div>It's not clear to me what you mean by this. When you talk about "port" here, are you referring to the port that's used by the RTSP protocol - e.g., 554 or 8554 by default?</div><div><br></div><div><br></div><div><blockquote type="cite"><div style="background-color: rgb(224, 224, 224); position: static; z-index: auto; " background="" bgcolor="#e0e0e0"><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 10pt; "> <span class="Apple-style-span" style="color: rgb(0, 80, 128); font-family: 'Trebuchet MS'; ">Am I correct to say that I have to create one RTSP
server, create one ServerMediaSession and then add multiple
OnDemandServerSubsessions to the ServerMediaSession and use
addServerMediaSession to add the ServerMediaSession to
the RTSPserver?</span></div></div></blockquote><div><br></div>Once again, it's not clear exactly what you want, but I think the answer is "no". Instead, what you probably want to do is:</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>- create one RTSP server</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>- create multiple "ServerMediaSession"s; one for each stream that you want to support - distinguished by stream name.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>- for each stream that you want to support, add one "OnDemandServerMediaSubsession" (subclass) object to the corresponding "ServerMediaSession" object for each 'substream' (e.g., audio, video) in the stream.</div><div><br></div><div>This should become clear by looking at the code for "onDemandServerMediaSession".</div><br><br><div apple-content-edited="true">
<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; font-size: medium; "><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; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>