bluenviron / gortsplib

RTSP 1.0 client and server library for the Go programming language
MIT License
648 stars 181 forks source link

Support for RTSP over HTTP #433

Open sirzooro opened 9 months ago

sirzooro commented 9 months ago

Please add support for RTSP over HTTP. Specification: https://opensource.apple.com/source/QuickTimeStreamingServer/QuickTimeStreamingServer-412.42/Documentation/RTSP_Over_HTTP.pdf

aler9 commented 9 months ago

Although i don't like RTSP over HTTP, since it's a useless overhead and there are better ways to stream RTSP to a browser (take a look at MediaMTX, that automatically converts RTSP to WebRTC and HLS), we will add support for it since it's mandatory in order to be compliant to ONVIF profiles S and T.

sirzooro commented 9 months ago

Thanks. Please keep in mind that ONVIF also has specification for RTSP over WebSocket, so some abstraction layer for tunneled RTSP connection would be a nice thing to have so RTSP over WS (or any other RTSP tunnel) could be easier added when needed.

cedricve commented 7 months ago

Interesting! I was wondering where to find an implementation of WebRTC for gortsplib. I have one that is based on webrtc/pion, but cannot get it working for this library.