<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div dir="ltr"><div>The android RTSP client library has many bugs and issues.</div><div>sometimes it gets stuck during the prepare stage, and there's no way to stop it using its API.</div><div><br></div><div>I'd like to stop the server session it is connected to, in order to 'convince' the RTSP client to go away.</div>
<div>so essentially i'm lookling to do something like:</div><div><font face="'courier new', monospace"> RTSPServer::RTSPClientSession* client = get_the_stuck_client_session();</font></div><div><font face="'courier new', monospace"> delete client;</font></div></div></blockquote><div><br></div>Yes, deleting a "RTSPServer::RTSPClientSession" object is the right way to do this.</div><div><br></div><div><br><blockquote type="cite"><div dir="ltr">
<div><font face="'courier new', monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">well that's the general idea, not the actual code.</font></div><div><font face="arial, helvetica, sans-serif">the problem is obviously, that </font><span style="font-family:'courier new',monospace">RTSPServer::</span><span style="font-family:'courier new',monospace">RTSPClientSession </span>is sort-of an internal class, I didn't find a way to enumerate the currently running sessions, or tell them to stop.</div></div></blockquote><div><br></div></div>That's right, there's no mechanism built into the supplied code for doing this. However, this reply (to a similar question last year) should help you:<div><a href="http://lists.live555.com/pipermail/live-devel/2011-June/013446.html">http://lists.live555.com/pipermail/live-devel/2011-June/013446.html</a></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>