<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"> The openRtsp has designed to be close rudely by the CTRL+C or console windows's close button.</blockquote><div><br></div>There's nothing "rude" about terminating a process; a process doesn't have feelings.</div><div><br></div><div>The only problem with simply terminating a process that's acting as a RTSP client is that it will not stop the server from continuing to transmit the stream's data. (Eventually, the server will usually 'time out' the stream, because of lack of 'liveness' by the client, but it will continue to transmit data in the meantime.) So ideally you should also send a RTSP "TEARDOWN" command to the client, telling it to stop streaming.</div><div><br></div><div>If your RTSP client is a standalone process (like "openRTSP"), then all you need to do is close the output 'sink' objects (e.g., output files), and then send a RTSP "TEARDOWN" command. Then you can just call "exit()" to terminate the process.</div><div><br></div><div>If, however, your RTSP client is part of an application that you (for whatever reason) do not want to terminate, then you have to do more. For guidance, I suggest that you look at the new "testRTSPClient" application (*not* the "openRTSP" code) - in particular, the implementation of the "shutdownStream()" function.</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>