[Live-devel] how to set RTSP Client use TCP instead of UDP

Victor Lee victor_l2000 at hotmail.com
Fri Jan 5 22:10:37 PST 2007


Hi All,

I have a RTSP Server built with LiveMedia on PC, and now I am trying to use 
TCP to transport streams between RTSP Server and RTSP Client. From what i 
read about LiveMedia, it support both UDP and TCP.

I used the 2 examples provided by LiveMedia, testOnDemandRTSPServer and 
openRTSP, with the -t option.
The the client sent the cmd with: Transport: 
RTP/AVP/TCP;unicast;interleaved=0-1
While the stream is transferring from the Server to the Client, using 
netstat, I still find the RTSP Server and Client each has 2 UDP connections, 
which is the same case as when i do not use the -t option.
The 2 UDP connections use 2 continuous port numbers. The even one for RTP 
data and the odd one for RTCP control information (Please correct me if i am 
wrong).

Could any one answer me the following questions or tell me where i can find 
further info?
1.  Does the  mean that actually UDP is still used? How can i be sure that 
TCP is used?

2. When not using -t option, UDP is used, there is still another TCP 
connection, established with the server's port 8554. I have no idea about 
what this one is for.

3. what is the correct way to set the RTSP Client using TCP instead of UDP?

Thanks in advance!

Victor

_________________________________________________________________
Type your favorite song.  Get a customized station.  Try MSN Radio powered 
by Pandora. http://radio.msn.com/?icid=T002MSN03A07001



More information about the live-devel mailing list