<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite"><div dir="ltr"> I am using testOnDemandRTSPServer. I can
stream using TCP or UDP from QT player(with client side settings
changed). What changes do I need to make so that only UDP streaming is
allowed.</div></blockquote><div><br></div>Venkat,</div><div><br></div><div>I'm a bit surprised by your question, because most people consider RTP/RTCP-over-TCP streaming to be a feature. (If the client is behind a firewall, then sometimes this is the only way that it will be able to access the stream.)</div><div><br></div><div>However, if you really want to modify your server so that it refuses all requests to stream via TCP, you can do so by changing line 1650 of "liveMedia/RTSPServer.cpp" (assuming the latest version of the code: 2014.01.18) from</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>if (fIsMulticast) {</div><div>to</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>if (fIsMulticast || streamingMode == RTP_TCP) {</div><div><br></div><div>(Of course, if you make this modification, it - like all modifications to the code - will be subject to the conditions of the LGPL.)</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; "><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; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>