Question

I would like to provide a stream of images via RTSP using Indy 10 components. I don't need to know all the individual requests and all, that's all covered separate from what I need. But what Indy component should I use and how should I use it? This stream will not consist of sound, only images.

Note that RTSP is very similar to HTTP, but with a different structure.

Was it helpful?

Solution

Indy does not have any RTSP or RTP/RTCP components, so you will have to implement those protocols from scratch. RTSP is a textual-based protocol, so you can use TIdCmdTCPServer, though it may be better to derive from TId(Custom)TCPServer and override its DoExecute() method to avoid duplicated code (reading headers, processing URLs, etc), like TIdHTTPServer does. As for the images, you can use TIdUDPClient to send the RTP/RTCP packets as needed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top