Yate
|
A List of Jingle RTP data payloads. More...
#include <yatejingle.h>
Public Types | |
enum | Media { MediaMissing = -1, MediaUnknown = 0, Audio = 1 } |
Public Member Functions | |
JGRtpMediaList (Media m=MediaMissing, bool cryptoMandatory=false) | |
Media | media () const |
void | add (const char *id, const char *name, const char *clockrate, const char *bitrate, const char *synonym) |
JGRtpMedia * | findMedia (const String &id) |
JGRtpMedia * | findSynonym (const String &value) const |
XMLElement * | toXML (bool telEvent=true) const |
void | fromXML (XMLElement *xml) |
bool | createList (String &dest, bool synonym, const char *sep=",") |
Public Attributes | |
Media | m_media |
bool | m_cryptoMandatory |
ObjList | m_cryptoLocal |
ObjList | m_cryptoRemote |
bool | m_ready |
Static Public Attributes | |
static TokenDict | s_media [] |
A List of Jingle RTP data payloads.
Hold a list of RTP data payloads
enum Media |
Media type enumeration
JGRtpMediaList | ( | Media | m = MediaMissing , |
bool | cryptoMandatory = false |
||
) | [inline] |
Constructor
m | Media type as enumeration |
cryptoMandatory | True to require media encryption |
void add | ( | const char * | id, |
const char * | name, | ||
const char * | clockrate, | ||
const char * | bitrate, | ||
const char * | synonym | ||
) | [inline] |
Append a new data payload
id | The payload's id |
name | The payload's name |
clockrate | The payload's clockrate |
bitrate | The payload's bitrate |
synonym | The payload's synonym |
bool createList | ( | String & | dest, |
bool | synonym, | ||
const char * | sep = "," |
||
) |
Create a list from data payloads
dest | Destination string |
synonym | True to create from synonyms, false to create from names |
sep | List item separator |
JGRtpMedia* findMedia | ( | const String & | id | ) |
Find a data payload by its id
id | Identifier of media to find |
JGRtpMedia* findSynonym | ( | const String & | value | ) | const |
Find a data payload by its synonym
value | The value to compare with |
void fromXML | ( | XMLElement * | xml | ) |
Fill this list from an XML element's children. Clear before attempting to fill
xml | The source XML element |
Media media | ( | ) | const [inline] |
Get the media type of the payloads owned by this list
XMLElement* toXML | ( | bool | telEvent = true | ) | const |
Create a 'description' element and add payload children to it
telEvent | True to append a telephone event data payload |
bool m_cryptoMandatory |
Crypto (SRTP) params
bool m_ready |
Flag indicating wether media was negotiated