<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Ross,<div><br></div><div>thank you for replying!</div><div><br></div><div>I guess that it isn't a server's problem. I tested the connection with an unmodified openRTSP client and got an image(see output below).</div><div>My question is, are there other places i have to change in source code for using TCP except <span class="Apple-style-span" style="color: rgb(61, 30, 129); font-family: Menlo; font-size: 11px; ">sendSetupCommand?</span></div><div><br></div><div><br></div><div>Thanks!</div><div><br></div><div><br></div><div>Console input:</div><div><br></div><div>./openRTSP -t <a href="rtsp://193.158.57.66:8555/mjpeg">rtsp://193.158.57.66:8555/mjpeg</a></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Console output:</div><div><br></div><div>Opening connection to 193.158.57.66, port 8555...</div><div>...remote connection opened</div><div>Sending request: OPTIONS <a href="rtsp://193.158.57.66:8555/mjpeg">rtsp://193.158.57.66:8555/mjpeg</a> RTSP/1.0</div><div>CSeq: 2</div><div>User-Agent: ./openRTSP (LIVE555 Streaming Media v2011.05.25)</div><div><br></div><div><br></div><div>Received 122 new bytes of response data.</div><div>Received a complete OPTIONS response:</div><div>RTSP/1.0 200 OK</div><div>CSeq: 2</div><div>Date: Wed, Jun 15 2011 08:17:16 GMT</div><div>Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE</div><div><br></div><div><br></div><div>Sending request: DESCRIBE <a href="rtsp://193.158.57.66:8555/mjpeg">rtsp://193.158.57.66:8555/mjpeg</a> RTSP/1.0</div><div>CSeq: 3</div><div>User-Agent: ./openRTSP (LIVE555 Streaming Media v2011.05.25)</div><div>Accept: application/sdp</div><div><br></div><div><br></div><div>Received 538 new bytes of response data.</div><div>Received a complete DESCRIBE response:</div><div>RTSP/1.0 200 OK</div><div>CSeq: 3</div><div>Date: Wed, Jun 15 2011 08:17:16 GMT</div><div>Content-Base: <a href="rtsp://192.168.30.41:8555/mjpeg/">rtsp://192.168.30.41:8555/mjpeg/</a></div><div>Content-Type: application/sdp</div><div>Content-Length: 373</div><div><br></div><div>v=0</div><div>o=- 1307089321210096 1 IN IP4 192.168.30.41</div><div>s=RTSP/RTP stream from IDS VSE</div><div>i=mjpeg</div><div>t=0 0</div><div>a=tool:LIVE555 Streaming Media v2008.04.02</div><div>a=type:broadcast</div><div>a=control:*</div><div>a=range:npt=0-</div><div>a=x-qt-text-nam:RTSP/RTP stream from IDS VSE</div><div>a=x-qt-text-inf:mjpeg</div><div>m=video 0 RTP/AVP 26</div><div>c=IN IP4 0.0.0.0</div><div>a=control:track1</div><div>m=audio 0 RTP/AVP 0</div><div>c=IN IP4 0.0.0.0</div><div>a=control:track2</div><div><br></div><div>Opened URL "<a href="rtsp://193.158.57.66:8555/mjpeg">rtsp://193.158.57.66:8555/mjpeg</a>", returning a SDP description:</div><div>v=0</div><div>o=- 1307089321210096 1 IN IP4 192.168.30.41</div><div>s=RTSP/RTP stream from IDS VSE</div><div>i=mjpeg</div><div>t=0 0</div><div>a=tool:LIVE555 Streaming Media v2008.04.02</div><div>a=type:broadcast</div><div>a=control:*</div><div>a=range:npt=0-</div><div>a=x-qt-text-nam:RTSP/RTP stream from IDS VSE</div><div>a=x-qt-text-inf:mjpeg</div><div>m=video 0 RTP/AVP 26</div><div>c=IN IP4 0.0.0.0</div><div>a=control:track1</div><div>m=audio 0 RTP/AVP 0</div><div>c=IN IP4 0.0.0.0</div><div>a=control:track2</div><div><br></div><div>Created receiver for "video/JPEG" subsession (client ports 53608-53609)</div><div>Created receiver for "audio/PCMU" subsession (client ports 58372-58373)</div><div>Sending request: SETUP <a href="rtsp://192.168.30.41:8555/mjpeg/track1">rtsp://192.168.30.41:8555/mjpeg/track1</a> RTSP/1.0</div><div>CSeq: 4</div><div>User-Agent: ./openRTSP (LIVE555 Streaming Media v2011.05.25)</div><div>Transport: RTP/AVP/TCP;unicast;interleaved=0-1</div><div><br></div><div><br></div><div>Received 173 new bytes of response data.</div><div>Received a complete SETUP response:</div><div>RTSP/1.0 200 OK</div><div>CSeq: 4</div><div>Date: Wed, Jun 15 2011 08:17:17 GMT</div><div>Transport: RTP/AVP/TCP;unicast;destination=89.199.63.222;source=192.168.30.41;interleaved=0-1</div><div>Session: 80</div><div><br></div><div><br></div><div>Setup "video/JPEG" subsession (client ports 53608-53609)</div><div>Sending request: SETUP <a href="rtsp://192.168.30.41:8555/mjpeg/track2">rtsp://192.168.30.41:8555/mjpeg/track2</a> RTSP/1.0</div><div>CSeq: 5</div><div>User-Agent: ./openRTSP (LIVE555 Streaming Media v2011.05.25)</div><div>Transport: RTP/AVP/TCP;unicast;interleaved=2-3</div><div>Session: 80</div><div><br></div><div><br></div><div>Received a complete SETUP response:</div><div>RTSP/1.0 200 OK</div><div>CSeq: 5</div><div>Date: Wed, Jun 15 2011 08:17:17 GMT</div><div>Transport: RTP/AVP/TCP;unicast;destination=89.199.63.222;source=192.168.30.41;interleaved=2-3</div><div>Session: 80</div><div><br></div><div><br></div><div>Setup "audio/PCMU" subsession (client ports 58372-58373)</div><div>Created output file: "video-JPEG-1"</div><div>Created output file: "audio-PCMU-2"</div><div>Sending request: PLAY <a href="rtsp://192.168.30.41:8555/mjpeg/">rtsp://192.168.30.41:8555/mjpeg/</a> RTSP/1.0</div><div>CSeq: 6</div><div>User-Agent: ./openRTSP (LIVE555 Streaming Media v2011.05.25)</div><div>Session: 80</div><div>Range: npt=0.000-</div><div><br></div><div><br></div><div>Received a complete PLAY response:</div><div>RTSP/1.0 200 OK</div><div>CSeq: 6</div><div>Date: Wed, Jun 15 2011 08:17:17 GMT</div><div>Range: npt=0.000-</div><div>Session: 80</div><div>RTP-Info: url=rtsp://192.168.30.41:8555/mjpeg/track1;seq=42451;rtptime=658530933,url=rtsp://192.168.30.41:8555/mjpeg/track2;seq=9573;rtptime=2871840167</div><div><br></div><div><br></div><div>Started playing session</div><div>Receiving streamed data (signal with "kill -HUP 39105" or "kill -USR1 39105" to terminate)...</div><div><br></div><div> <br><div><div>Am 14.06.2011 um 17:33 schrieb Ross Finlayson:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div>
<!-- Converted from text/plain format --><p><font size="2">>i am developing an iPhone/iPad App that receives RTSP-streams. It<br>
>works fine, while the server and client are in the same network. But<br>
>If I try to get a stream from outside(from Internet) i run in<br>
>problems with UDP-ports. On the server side i can open ports, but on<br>
>a client side it is sometimes impossible. So i tried to use RTP<br>
>over TCP:<br>
> <br>
> m_pRtspClient->sendSetupCommand(*pSubsession,<br>
>continueAfterSETUP,False,True);<br>
><br>
>But it doesn't work, even if i am in the same network. If I set last<br>
>parameter to False than my app works fine(but only in the same<br>
>network).<br>
><br>
>About my systems:<br>
>My server is "self implemented media server"(January 2011 Version )<br>
>that runs on windows. I use unicast.<br>
>My client has a latest live555 (Mai 2011) version.<br>
><br>
>I can't find out where is a problem.<br>
<br>
Perhaps the problem is with your "self implemented media server"? I<br>
suggest that you try testing your client using one of our<br>
(unmodified) RTSP server applications - "testOnDemandRTSPServer" or<br>
"live555MediaServer" first.<br>
<br>
It might also help if you could get our "openRTSP" client running on<br>
your iPhone/iPad, and first use that - rather than your own client<br>
application - for testing.<br>
--<br>
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/">http://www.live555.com/</a><br>
_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</font>
</p>
</div>
</blockquote></div><br></div></body></html>