<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16443"></HEAD>
<BODY>
<DIV><SPAN class=639494015-25052012><FONT size=2 face=Arial>Hello
Ross,</FONT></SPAN></DIV>
<DIV><SPAN class=639494015-25052012><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=639494015-25052012><FONT size=2 face=Arial>could you please
shed a little light on the following item:</FONT></SPAN></DIV>
<DIV><SPAN class=639494015-25052012><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=639494015-25052012><FONT size=2 face=Arial>I'm using
testOnDemandRTSPServer-based application to stream h264 stream. The strange
thing that I don't wee when the subsession is destroyed when the client is
disconnected. What I see:</FONT></SPAN></DIV>
<DIV><SPAN class=639494015-25052012><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=639494015-25052012>x</SPAN>RTSPServer::createNew()</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=639494015-25052012>x</SPAN>RTSPServer::lookupServerMediaSession()<SPAN
class=639494015-25052012> looks up and
creates SMS</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2> <SPAN class=639494015-25052012>
xRTSPServer::createNewSMS()
so, here it creates SMS, <FONT size=2>reuseFirstSource =
false</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=639494015-25052012>
xMediaSubsession::xMediaSubsession() then
adds a mediasubsession, fine</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=639494015-25052012>xMediaSubsession::createNewStreamSource() it
creates source</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=639494015-25052012>x</SPAN>StreamSource::~<SPAN
class=639494015-25052012>x</SPAN>StreamSource()<SPAN
class=639494015-25052012>
and kills it immediately</SPAN></FONT></FONT></DIV><SPAN
class=639494015-25052012>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=639494015-25052012>x</SPAN>RTSPServer::lookupServerMediaSession()<SPAN
class=639494015-25052012> again lookup
(successfully this time, no new SHS creation)</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=639494015-25052012>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=639494015-25052012>xMediaSubsession::createNewStreamSource()
it creates source again</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=639494015-25052012>-- it starts
to deliver frames here --</SPAN></FONT></FONT></DIV></SPAN></FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial>when the client gracefully shuts down I
see:</FONT></DIV>
<DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=639494015-25052012>x</SPAN>StreamSource::~<SPAN
class=639494015-25052012>x</SPAN>StreamSource()<SPAN
class=639494015-25052012>
</SPAN><SPAN class=639494015-25052012> so, the
source stream is closed and destroyed.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=639494015-25052012></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=639494015-25052012>But even after
10 minutes I don't see any subsession close. Do I need to close it manually
(how? who and how should call ::close(), do I need to remove it from SMS)? Or do
I need to keep the subsession?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=639494015-25052012></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=639494015-25052012>I\ve noticed
that if I connect a client again with the same request it tries to create a
new source (for the same subsession I guess). What's the relation between
MediaSession, subsession(s) and streams? Am I right that (assuming
unicast):</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=639494015-25052012></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=639494015-25052012>MediaSession -
single entity for particular let say "camera".</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=639494015-25052012>Subsession -
one (or two if audio enabled) entities for this
"camera".</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=639494015-25052012>Stream -
practical implementation of the client connection.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=639494015-25052012></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=639494015-25052012>?</SPAN></FONT></FONT></DIV></SPAN></DIV>
<DIV><SPAN class=639494015-25052012><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=639494015-25052012><FONT size=2 face=Arial>Thanks in
advance,</FONT></SPAN></DIV>
<DIV><SPAN class=639494015-25052012><FONT size=2
face=Arial>Nikolai.</FONT></SPAN></DIV>
<DIV align=left><FONT face="Courier New"><FONT
size=2>_________________________________________________________<FONT
face="Times New Roman"><BR></FONT></FONT></FONT><FONT face="Courier New"><FONT
size=2>Nikolai Vorontsov</FONT><BR><FONT size=2>Quadrox nv</FONT></FONT><FONT
face="Times New Roman"><BR></FONT><FONT size=2
face="Courier New">Duigemhofstraat 101</FONT><FONT
face="Times New Roman"><BR></FONT><FONT size=2 face="Courier New">3020
HERENT</FONT><FONT face="Times New Roman"><BR></FONT><FONT size=2
face="Courier New">Belgium</FONT><FONT face="Times New Roman"><BR></FONT><FONT
size=2 face="Courier New">Tel: +32</FONT><FONT face="Times New Roman"></FONT>
<FONT size=2 face="Courier New">16582585 </FONT><U><FONT color=#0000ff size=2
face="Courier New"><<A title=mailto:nikolai.vorontsov@quadrox.be
href="mailto:nikolai.vorontsov@quadrox.be">mailto:nikolai.vorontsov@quadrox.be</A>></FONT></U><FONT
face="Times New Roman"><BR></FONT><FONT size=2 face="Courier New">Fax:
+32</FONT><FONT face="Times New Roman"></FONT> <FONT size=2
face="Courier New">16582586 </FONT><U><FONT color=#0000ff size=2
face="Courier New"><<A title=http://www.quadrox.be/
href="http://www.quadrox.be/"
target=_blank>http://www.quadrox.be</A>></FONT></U><FONT
face="Times New Roman"> </FONT></DIV>
<DIV> </DIV></BODY></HTML>