Confusion regarding RTSP over HTTP tunneling

Ajinkya picture Ajinkya · Jan 8, 2013 · Viewed 16.3k times · Source

I had an confusion of which I searched but didn't get any answer.

I am streaming a video file using RTSP over HTTP tunneling then when I see the wire-shark to see the packets source and destination and protocol I saw a UDP protocol although i am using RTSP over HTTP tunneling.

Can any one tell me why don't I see the TCP protocol instead of UDP protocol for packets being sent from source to destination?

Answer

vipw picture vipw · Jan 8, 2013

RTSP sets up RTP streams for streaming the video and audio. They are probably being sent over UDP instead of tunneling over the existing TCP connection.

Just because RTSP is being tunneled over HTTP doesn't guarantee that the RTP streams will be configured to use the same socket. It's up to the client to request the transport, but you can change the server to only support the interleaved transport. See this answer https://stackoverflow.com/a/3536969/759140