Represents an SDP media format. When an SDP message contains multiple media formats, they are represented by a linked list of MCC_SDP_FORMAT structures.
typedef struct _MCC_SDP_FORMAT
{
struct _MCC_SDP_FORMAT * next;
const char * id;
MCC_SDP_RTPMAP * rtpmap;
} MCC_SDP_FORMAT;
Field |
Type |
Description |
SDP field |
Required/ |
next |
MCC_SDP_MEDIA |
Pointer to the next media format in the linked list, if available. |
N/A |
Optional |
id |
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 |
rtpmap |
MCC_SDP_FORMAT |
Pointer to the first rtpmap attribute that corresponds to this format, as defined by the MCC_SDP_RTPMAP structure. The MCC SDP library automatically creates rtpmap attributes for this structure as follows:
The value of the rtpmap field is 0 if there are no rtpmap attributes associated with the SDP message. |
a |
Optional |