Skip to main content
The Client struct is the main entry point for connecting to RTSP servers. It operates in two primary modes:
  • Play mode — read RTP/RTCP media streams from a server.
  • Record mode — publish RTP media streams to a server.
Both modes share the same struct. You configure fields before calling Start() or one of its shorthand helpers, then register packet callbacks and enter the active state.

Client fields

All fields are optional unless noted. Zero values produce the documented defaults.

Connection target

RTSP parameters

Callbacks

Key methods

What’s next

Playing streams

Read RTP media from an RTSP server with callbacks and pause/resume.

Recording streams

Publish RTP media to an RTSP server using StartRecording.

Transport options

Choose between UDP, TCP, and UDP-multicast transports.

Security

RTSPS, SRTP, credentials, and self-signed certificates.