SDP session description (RFC 4566).
More...
#include <sdpsession.h>
SDP session description (RFC 4566).
SdpSession represents a complete SDP document. It can parse SDP text into structured data and generate SDP text from structured data. Used by ST 2110 and AES67 for stream advertisement.
- Example
sdp.setConnectionAddress(
"239.0.0.1");
video.setProtocol(
"RTP/AVP");
video.addPayloadType(96);
video.setAttribute(
"rtpmap",
"96 raw/90000");
SDP session description (RFC 4566).
Definition sdpsession.h:127
void setSessionName(const String &name)
Sets the session name.
Definition sdpsession.h:154
promeki::List< SdpSession > List
List of SdpSession values.
Definition sdpsession.h:134
Encoding-aware string class with copy-on-write semantics.
Definition string.h:35
◆ fromString()
Parses an SDP text string into an SdpSession.
- Parameters
-
| sdp | The SDP text to parse. |
- Returns
- A Result containing the parsed session and Error::Ok, or Error::Invalid on parse failure.
◆ setOrigin()
Sets the origin (o= line) fields.
- Parameters
-
| username | The originator username. |
| sessionId | The session ID. |
| sessionVersion | The session version. |
| netType | Network type (default "IN"). |
| addrType | Address type (default "IP4"). |
| address | The originator's address. |
◆ toString()
| String SdpSession::toString |
( |
| ) |
const |
Generates the SDP text representation.
- Returns
- The complete SDP document as a string.
The documentation for this class was generated from the following file: