mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
039d69ba4216f837c9150a8ae0dc3ef8ea2482cc
ServerConn: support SETUP calls without trackID (https://github.com/aler9/rtsp-simple-server/issues/155)
gortsplib
RTSP 1.0 client and server library for the Go programming language, written for rtsp-simple-server.
Features:
- Client
- Read streams from servers with UDP or TCP
- Publish streams to servers with UDP or TCP
- Encrypt streams with TLS (RTSPS)
- Query servers about published streams
- Read only selected tracks of a stream
- Pause reading or publishing without disconnecting from the server
- Server
- Handle requests from clients
- Accept streams from clients with UDP or TCP
- Send streams to clients with UDP or TCP
- Encrypt streams with TLS (RTSPS)
Table of contents
Examples
- client-query
- client-read
- client-read-partial
- client-read-options
- client-read-pause
- client-publish
- client-publish-options
- client-publish-pause
- server
- server-udp
- server-tls
API Documentation
https://pkg.go.dev/github.com/aler9/gortsplib#pkg-index
Links
Related projects
- https://github.com/aler9/rtsp-simple-server
- https://github.com/pion/sdp (SDP library used internally)
- https://github.com/pion/rtcp (RTCP library used internally)
- https://github.com/pion/rtp (RTP library used internally)
- https://github.com/notedit/rtmp (RTMP library used internally)
IETF Standards
- RTSP 1.0 https://tools.ietf.org/html/rfc2326
- RTSP 2.0 https://tools.ietf.org/html/rfc7826
- HTTP 1.1 https://tools.ietf.org/html/rfc2616
Conventions
Languages
Go
99.8%
Makefile
0.2%