MCC_SDP_FORMAT

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.

Definition

typedef struct _MCC_SDP_FORMAT
{
   struct _MCC_SDP_FORMAT *    next;
   const char *                id;
   MCC_SDP_RTPMAP *            rtpmap;

} MCC_SDP_FORMAT;

Fields

Field

Type

Description

SDP field

Required/
optional

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:

  • If the SDP message has media-level rtpmap attributes, then the library copies the media-level rtpmap attributes to this structure.

  • If the SDP message has only session-level rtpmap attributes, then the library copies the session-level rtpmap attributes to this structure.

The value of the rtpmap field is 0 if there are no rtpmap attributes associated with the SDP message.

a

Optional