SDP media description (m= section). More...
#include <sdpsession.h>
Public Member Functions | |
| SdpMediaDescription ()=default | |
| Default constructor. | |
| const String & | mediaType () const |
| Returns the media type (e.g. "audio", "video"). | |
| void | setMediaType (const String &type) |
| Sets the media type. | |
| uint16_t | port () const |
| Returns the port number. | |
| void | setPort (uint16_t port) |
| Sets the port number. | |
| const String & | protocol () const |
| Returns the transport protocol (e.g. "RTP/AVP"). | |
| void | setProtocol (const String &proto) |
| Sets the transport protocol. | |
| const List< uint8_t > & | payloadTypes () const |
| Returns the list of payload type numbers. | |
| void | addPayloadType (uint8_t pt) |
| Adds a payload type number. | |
| String | attribute (const String &name) const |
| Returns the value of a named attribute, or empty string. | |
| void | setAttribute (const String &name, const String &value) |
| Sets a named attribute. | |
| const Map< String, String > & | attributes () const |
| Returns all attributes as a map. | |
| const String & | connectionAddress () const |
| Returns an optional connection address for this media. | |
| void | setConnectionAddress (const String &addr) |
| Sets the connection address for this media. | |
SDP media description (m= section).
Represents a single media description within an SDP session. Each media description has a media type, port, transport protocol, payload types, and key-value attributes.
Returns an optional connection address for this media.
If set, overrides the session-level connection address.