Utility class for manipulating the value of an rtpmap-attribute.
The normative reference for correct formatting and values is draft-ietf-mmusic-sdp-new-14 unless specified otherwise in member documentation. The implementation supports this normative reference, but does not enforce it fully.
Tries to parse a string as an rtpmap attribute value up to the end of the string or CRLF, whichever comes first, and set pointers to the components found.
Tries to parse a string as an rtpmap attribute value up to the end of the string or CRLF, whichever comes first, and set pointers to the components found.
The parameter must stay in scope as long as this instance exists. Otherwise, the member variables of this class will point to a released memory.
Parameters:
aText
String containing the value of an rtpmap attribute.
Returns:
a new instance
Leave:
KErrArgument if parsing fails.
IMPORT_C HBufC8* TSdpRtpmapValue::EncodeL
(
)
const
Outputs the attribute value formatted according to SDP syntax.
The field terminating CRLF is not included in the output. When constructing CSdpFmtAttributeField, return value of this function can be used as aValue in CSdpFmtAttributeField::NewL (RStringF aAttribute, const TDesC8& aFormat, const TDesC8& aValue) function.
Returns:
Encoded value. Ovnership of buffer is changed to caller.