SDP utilities. More...
Macros | |
#define | JANUS_BUFSIZE 8192 |
Functions | |
void | janus_sdp_free (janus_sdp *sdp) |
Method to free a Janus SDP object. More... | |
janus_sdp_attribute * | janus_sdp_attribute_create (const char *name, const char *value,...) |
void | janus_sdp_attribute_destroy (janus_sdp_attribute *attr) |
Helper method to free a janus_sdp_attribute instance. More... | |
janus_sdp * | janus_sdp_parse (const char *sdp, char *error, size_t errlen) |
Method to parse an SDP string to a janus_sdp object. More... | |
int | janus_sdp_remove_payload_type (janus_sdp *sdp, int pt) |
Helper method to quickly remove all traces (m-line, rtpmap, fmtp, etc.) of a payload type. More... | |
char * | janus_sdp_write (janus_sdp *imported) |
Method to serialize a janus_sdp object to an SDP string. More... | |
SDP utilities.
Implementation of an internal SDP representation. Allows to parse SDP strings to an internal janus_sdp object, the manipulation of such object by playing with its properties, and a serialization to an SDP string that can be passed around. Since they don't have any core dependencies, these utilities can be used by plugins as well.
#define JANUS_BUFSIZE 8192 |
janus_sdp_attribute* janus_sdp_attribute_create | ( | const char * | name, |
const char * | value, | ||
... | |||
) |
void janus_sdp_attribute_destroy | ( | janus_sdp_attribute * | attr | ) |
Helper method to free a janus_sdp_attribute instance.
[in] | attr | The janus_sdp_attribute instance to free |
void janus_sdp_free | ( | janus_sdp * | sdp | ) |
Method to free a Janus SDP object.
[in] | sdp | The Janus SDP object to free |
janus_sdp* janus_sdp_parse | ( | const char * | sdp, |
char * | error, | ||
size_t | errlen | ||
) |
Method to parse an SDP string to a janus_sdp object.
[in] | sdp | The SDP string to parse |
[in,out] | error | Buffer to receive a reason for an error, if any |
[in] | errlen | The length of the error buffer |
int janus_sdp_remove_payload_type | ( | janus_sdp * | sdp, |
int | pt | ||
) |
Helper method to quickly remove all traces (m-line, rtpmap, fmtp, etc.) of a payload type.
[in] | sdp | The janus_sdp object to remove the payload type from |
[in] | pt | The payload type to remove |