What is RTSP?
RTSP (Real Time Streaming Protocol) is the control protocol for the delivery of multimedia content across IP networks.
It is primarily based on communications protocol for reliable delivery and incorporates a similar operation and syntax to hypertext transfer protocol. RTSP is employed by the consumer application to speak to the server info like the media file being requested, the kind of application the consumer is victimisation, the mechanism of delivery of the file (unicast or multicast, UDP or TCP), and other important control information commands such as DESCRIBE, SETUP, and PLAY. The actual multimedia system content isn't generally delivered over the RTSP connection(s), though it are often interleaved if needed. RTSP is analogous to the device of the streaming protocols.
Presented here are the basic RTSP requests. Some typical hypertext transfer protocol requests, just like the choices request, also are offered. The default transport layer port range is 554 for each communications protocol and UDP, the latter being seldom used for the management requests.
How does RTSP Work?
RTSP takes advantage of streaming that breaks knowledge into packets sized in keeping with the information measure offered between consumer and server. When the consumer has received enough packets, the user's software system are often enjoying one packet, pressure another, and downloading the third. This enables the user to concentrate or read the period of time file presently, and while not downloading the whole media file. This applies to live data feeds as well as stored clips.
Functions of RTSP
• Provides for on-demand access of multimedia items such as stored real- time audio/video files, live real-time feeds, or stored non-real-time items.
• Allows interoperability between client-server multimedia products from multiple vendors.
• Provides for control and delivery of real-time media and associated events between a media server and large numbers of media clients.
• Addresses key concerns of Internet content-providers and users - quality of service, efficiency of delivery, rights management, and measurement. It conjointly provides an underpin for developing the richest potential streaming multimedia system applications
A request message from a consumer to a server or the other way around includes, within the first line of that message, the method to be applied to the resource, the identifier of the resource, and the protocol version in use.
After receiving and deciphering an invitation message, the recipient responds with Associate in Nursing RTSP response message.
A choice request returns the request sorts the server can settle for.
A DESCRIBE request includes Associate in Nursing RTSP universal resource locator (rtsp://...), and the type of reply data that can be handled. This reply includes the presentation description, generally in Session Description Protocol (SDP) format.
A SETUP request specifies however one media stream should be transported. This should be done before a PLAY request is distributed. The request contains the media stream universal resource locator and a transport intellect. This intellect generally includes an area port for receiving RTP knowledge (audio or video), and another for RTCP knowledge (meta information).
A PLAY request can cause one or all media streams to be vie. Play requests are often stacked by causing multiple PLAY requests. The universal resource locator could also be the combination universal resource locator (to play all media streams), or a single media stream URL (to play only that stream). A range can be specified.
A PAUSE request briefly halts one or all media streams, so it can later be resumed with a PLAY request. The request contains Associate in Nursing combination or media stream universal resource locator.
This methodology initiates recording a variety of media knowledge in keeping with the presentation description. The time stamp reflects start and end time (UTC). If no time vary is given, use the start or end time provided in the presentation description.
SET_PARAMETER will check whether or not the consumer or server is active. It conjointly reveals the values of the presentation or stream tips that the Uniform Resource symbol (URI) contains and the characters