I know the RTSP and HTTP two online video is support by android. But how to understand the difference between RTSP and HTTP. I want to know how to work when play the online video with RTSP or HTTP, and what is the difference between them.Thank you!
While HTTP is stateless, RTSP has state; an identifier is used when needed to track concurrent sessions. Like HTTP, RTSP uses TCP to maintain an end-to-end connection and, while most RTSP control messages are sent by the client to the server, some commands travel in the other direction (i.e. from server to client).
RTSP uses the same concepts as basic HTTP, which makes it easily compatible with existing HTTP networks. The protocol also allows for a great deal of flexibility. Clients can request the features they want to use in an effort to find out if the media server supports them.
Enable the "Tunnel RTP and RTSP over HTTP" option and set the appropriate port used for the RTSP stream (PORT). After that, when using VLC as a client the streaming will be requested to be HTTP tunneled.
RTSP and RTP are often used interchangeably. But to be clear: RTSP is a presentation-layer protocol that lets end users command media servers via pause and play capabilities, whereas RTP is the transport protocol used to move said data.
RTSP stands for Real Time Streaming Protocol
. One of the main uses for RTSP is to receive streaming video (e.g video on demand). A client establishes a connection with a media server and obtains data from the server and displays it.
HTTP, on the other hand, is a stateless protocol. HTTP provides a mechanism to download a media file over the internet. It would not be wrong to think of accessing media over HTTP as accessing a file over a network and playing it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With