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?
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