MCC_SDP_MEDIA

Represents a media description in an SDP message. If the SDP message contains multiple media descriptions, they are represented by a linked list of MCC_SDP_MEDIA structures.

Definition

typedef struct _MCC_SDP_MEDIA
{
   struct _MCC_SDP_MEDIA *    next;
   const char *               type;
   const char                 protocol;
   const char                 info;
   uint32_t                   port;
   uint32_t                   count;
   MCC_SDP_ADDRESS *          connection;
   MCC_SDP_ATTRIBUTE *        attr;
   MCC_SDP_RTPMAP *           rtpmap;
   MCC_SDP_FORMAT *           format;

} MCC_SDP_MEDIA;

Fields

Field

Type

Description

SDP field

Required/
optional

next

MCC_SDP_MEDIA

Pointer to the next media description in the linked list, if available.

N/A

Optional

type

const char

Media type. Recognized values are:

MCCSDP_MEDIA_AUDIO

MCCSDP_MEDIA_VIDEO

MCCSDP_MEDIA_ATP

MCCSDP_MEDIA_DATA

MCCSDP_MEDIA_IMAGE

MCCSDP_MEDIA_CONTROL

m

Required

protocol

const char

Transport protocol. Recognized values are:

MCCSDP_PROT_RTPAVP

MCCSDP_PROT_UDP

MCCDSP_PROT_TCP

MCCSDP_PROT_UDPTL

m

Required

info

const char

Media stream description.

i

Optional

port

uint32_t

Destination port number.

m

Required

count

uint32_t

Port count.

The value of this field is 0 if there is no port count.

m

Optional

connection

MCC_SDP_ADDRESS

Media-level connection address.

c

Optional

attr

MCC_SDP_ATTRIBUTE

Pointer to the first media-level general attribute, as defined by the MCC_SDP_ATTRIBUTE structure.

The value of this field is 0 if there are no general session-level attributes associated with this SDP message.

a

Optional

rtpmap

MCC_SDP_RTPMAP

Pointer to the first media-level rtpmap attribute, as defined by the MCC_SDP_RTPMAP structure.

The value of this field is 0 if there are no media-level rtpmap attributes.

a

Optional

format

MCC_SDP_FORMAT

Pointer to the first media format, as defined by the MCC_SDP_FORMAT structure.

m

Required