<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Right Stationery</TITLE>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16437"></HEAD>
<BODY
style="BACKGROUND-COLOR: #e0e0e0; FONT-FAMILY: Arial; COLOR: #000000; FONT-SIZE: 10pt"
background="" bgColor=#e0e0e0>
<DIV><FONT color=#005080 size=3 face="Trebuchet MS"><SPAN
class=664024207-08122011>Hi Ross,</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>Thanks to all you assistance in the past, I am now able
to play multiple streams from the same port. Everything is working as I
need it to, but I have another question: How do I stop a specific stream if
multiple streams are running?</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>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><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 cannot see how it is possible to stop only a specific
stream if I make use of only one doEventLoop. If I have a doEventLoop for
every stream, then the app crashes, so I assume that is not the correct way to
do it.</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>Any suggestions will be
appreciated.</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>Regards.</SPAN></FONT></DIV></BODY></HTML>