Represents a session-level or media-level rtpmap attribute. MCC_SDP_RTPMAP represents:
A session-level rtpmap attribute, when it is used as a parameter in the MCC_SDP structure.
A media-level rtpmap attribute, when it is used as a parameter in the MCC_SDP_MEDIA structure.
When an SDP message contains multiple rtpmap attributes of the same type (session-level or media-level), they are represented by a linked list of MCC_SDP_RTPMAP structures.
typedef struct _MCC_SDP_RTPMAP
{
struct _MCC_SDP_RTPMAP * next;
const char * format;
const char * encoding;
uint32_t clockrate;
const char * parameter;
} MCC_SDP_RTPMAP;
Field |
Type |
Description |
SDP field |
Required/ |
next |
MCC_SDP_RTPMAP |
Pointer to the next rtpmap attribute, if available. |
N/A |
Optional |
format |
const char |
Media format payload identifier, as a string constant. For audio and video media, use the media payload type as defined in the RTP Audio/Video profile (RFC 1890). |
a |
Required |
encoding |
const char |
RTP encoding name. Recognized values for encoding names include payload names defined in RFC 1890, and RTP payload names registered as MIME types. If the transport protocol is RTP/AVP, then the value of this field is usually a media payload type, as defined in the RTP audio/video profile. For example: PCMU. If the transport protocol is UDP, then the value of this field is usually a MIME type. |
a |
Required |
clockrate |
uint32_t |
RTP encoding clock rate. |
a |
Required |
parameter |
const char |
RTP encoding parameter. |
a |
Optional |