Factory class for generating SDPs for known codec types and converting readable codec names to codec types and vice versa. More...
#include <SdpDefaultCodecFactory.h>
Accessors | |
static SdpCodec | getCodec (SdpCodec::SdpCodecTypes internalCodecId) |
Get a codec given an internal codec id. More... | |
static SdpCodec::SdpCodecTypes | getCodecType (const char *pCodecName) |
Converts the readable text codec name into a codec type. More... | |
static OsStatus | getCodecNameByType (SdpCodec::SdpCodecTypes codecType, UtlString &codecName) |
Get specific codec identified by iCodec. More... | |
static OsStatus | getMimeInfoByType (SdpCodec::SdpCodecTypes codecType, UtlString &mimeSubtype, UtlString &fmtp) |
Get MIME-subtype and fmtp strings for given codec type. More... | |
static OsStatus | getCodecType (const UtlString &mimeSubtype, unsigned sampleRate, unsigned numChannels, const UtlString &fmtp, SdpCodec::SdpCodecTypes &codecType) |
Get codec type by MIME-subtype/sample rate/channels number/fmtp combination. More... | |
static int | getCodecNames (UtlContainer &codecNames) |
Get the string names for all of the codec types known by the codec factory. More... | |
Factory class for generating SDPs for known codec types and converting readable codec names to codec types and vice versa.
|
static |
Get a codec given an internal codec id.
|
static |
Get specific codec identified by iCodec.
|
static |
Get the string names for all of the codec types known by the codec factory.
|
static |
Converts the readable text codec name into a codec type.
|
static |
Get codec type by MIME-subtype/sample rate/channels number/fmtp combination.
[in] | mimeSubtype | - MIME-subtype string to look for. |
[in] | sampleRate | - sample rate of codec to look for. |
[in] | numChannels | - number of channels of codec to look for. |
[in] | fmtp | - fmtp string to look for. |
[out] | codecType | - codec type (if found). |
OS_SUCESS | if appropriate mapping found and codecType set. |
OS_NOT_FOUND | if appropriate mapping not found. |
|
static |
Get MIME-subtype and fmtp strings for given codec type.
[in] | codecType | - codec type to look for. |
[out] | mimeSubtype | - MIME-subtype string (if found). |
[out] | fmtp | - fmtp string (if found). |
OS_SUCESS | if appropriate mapping found and mimeSubtype and fmtp parameters filled with data. |
OS_NOT_FOUND | if appropriate mapping not found. |