<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="664024207-08122011">Let me first let you how I am creating these multiple
streams:</span></font></div>
<div><font color="#005080" size="3" face="Trebuchet MS"><span class="664024207-08122011"></span></font> </div>
<div><font color="#005080" size="3" face="Trebuchet MS"><span class="664024207-08122011">1. Create an RTSPServer, if none exists. I make
use of only 1 RTSP server.</span></font></div>
<div><font color="#005080" size="3" face="Trebuchet MS"><span class="664024207-08122011">2. Create a new ServerMediaSession for each
stream. This ServerMediaSession is saved in a map with a unique identifier
for the stream.</span></font></div>
<div><font color="#005080" size="3" face="Trebuchet MS"><span class="664024207-08122011">3. Create a new OnDemandMediaSubsession of each stream,
depending on the type of media.</span></font></div>
<div><font color="#005080" size="3" face="Trebuchet MS"><span class="664024207-08122011">4. Add the OnDemandMediaSubsession to the
ServerMediaSession.</span></font></div>
<div><font color="#005080" size="3" face="Trebuchet MS"><span class="664024207-08122011">5. Add the ServerMediaSession to the RTSP
Server.</span></font></div>
<div><font color="#005080" size="3" face="Trebuchet MS"><span class="664024207-08122011">6. Run the doEventLoop if it has not been started
yet. If it has, do nothing.</span></font></div>
<div><font color="#005080" size="3" face="Trebuchet MS"><span class="664024207-08122011"></span></font> </div>
<div><font color="#005080" size="3" face="Trebuchet MS"><span class="664024207-08122011">Note that I have only one RTSP server and one
doEventLoop, regardless of how many streams run.</span></font></div>
<div><font color="#005080" size="3" face="Trebuchet MS"><span class="664024207-08122011"></span></font> </div>
<div><font color="#005080" size="3" face="Trebuchet MS"><span class="664024207-08122011">I am aware that in order to stop a stream, a
watchVariable is used. I am able to stop ALL streams using this method,
but I cannot stop a specific stream. </span></font></div></div></blockquote><div><br></div>First, you may find it better to use the new "event trigger" mechanism - see "UsageEnvironment/include/UsageEnvironment.hh" - rather than the "watchVariable" mechanism. (If you use "event triggers", then the "clientData" parameter to "triggerEvent()" could be used to (somehow) indicate a specific stream that you want to 'stop'.)</div><div><br></div><div>But alternatively, if you want to still use the "watchVariable" mechanism, the you can do so by having your 'signalling' thread (i.e., the one that sets the 'watch variable', but does not otherwise access any LIVE555 objects) also set some global variable in such a way to indicate which specific stream you want to 'stop'.</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>