sipXtapi home page


List of all members
SdpDefaultCodecFactory Class Reference

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...
 

Detailed Description

Factory class for generating SDPs for known codec types and converting readable codec names to codec types and vice versa.

Member Function Documentation

SdpCodec getCodec ( SdpCodec::SdpCodecTypes  internalCodecId)
static

Get a codec given an internal codec id.

OsStatus getCodecNameByType ( SdpCodec::SdpCodecTypes  codecType,
UtlString &  codecName 
)
static

Get specific codec identified by iCodec.

int getCodecNames ( UtlContainer &  codecNames)
static

Get the string names for all of the codec types known by the codec factory.

SdpCodec::SdpCodecTypes getCodecType ( const char *  pCodecName)
static

Converts the readable text codec name into a codec type.

OsStatus getCodecType ( const UtlString &  mimeSubtype,
unsigned  sampleRate,
unsigned  numChannels,
const UtlString &  fmtp,
SdpCodec::SdpCodecTypes codecType 
)
static

Get codec type by MIME-subtype/sample rate/channels number/fmtp combination.

Parameters
[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).
Return values
OS_SUCESSif appropriate mapping found and codecType set.
OS_NOT_FOUNDif appropriate mapping not found.
OsStatus getMimeInfoByType ( SdpCodec::SdpCodecTypes  codecType,
UtlString &  mimeSubtype,
UtlString &  fmtp 
)
static

Get MIME-subtype and fmtp strings for given codec type.

Parameters
[in]codecType- codec type to look for.
[out]mimeSubtype- MIME-subtype string (if found).
[out]fmtp- fmtp string (if found).
Return values
OS_SUCESSif appropriate mapping found and mimeSubtype and fmtp parameters filled with data.
OS_NOT_FOUNDif appropriate mapping not found.