RtspSession
Source:
RtspSession.h
Request¶
src/light/util/RtspSession.h:30What one request asked for, parsed out of its first line and headers.
Public Attributes¶
Verb verb = Verb::Unknown
: which verb, or Unknown where the line names none
uint32_t cseq = 0
: echoed in the response, which is how a client pairs the two
uint16_t rtpPort = 0
: the client's RTP port, from SETUP's Transport header
bool unicastUdp = false
: true where SETUP asked for RTP/AVP/UDP unicast
Public Types¶
enum Verb
| Value | Description |
|---|---|
Unknown |
|
Options |
|
Describe |
|
Setup |
|
Play |
|
Teardown |
Session¶
src/light/util/RtspSession.h:142One client's conversation: what it has agreed to, and what it is told next.
Public Methods¶
inline explicit Session(uint32_t sessionId)
: sessionId identifies this conversation in every response after SETUP.
inline State state() const
: Where the conversation has reached.
inline uint16_t rtpPort() const
: The client's RTP port, once SETUP has named one.
inline uint32_t id() const
: The session id a client echoes back.
inline size_t respond(const Request & req, const char * sdp, const char * url, char * out, size_t outLen)
: Answer one request into out, returning the bytes written; sdp and url serve DESCRIBE.
Public Static Attributes¶
constexpr uint16_t kServerRtpPort = 5004
: The port this server sends RTP from, which SETUP advertises.