sipxmediaadapterlib
Version 3.3
|
#include <CpMediaInterfaceFactory.h>
Public Member Functions | |
CpMediaInterfaceFactory () | |
virtual | ~CpMediaInterfaceFactory () |
void | setFactoryImplementation (CpMediaInterfaceFactoryImpl *pFactoryInterface) |
CpMediaInterface * | createMediaInterface (const char *publicAddress, const char *localAddress, int numCodecs, SdpCodec *sdpCodecArray[], const char *locale, int expeditedIpTos, const char *szStunServer, int iStunPort, int iStunKeepAlivePeriodSecs, const char *szTurnServer, int iTurnPort, const char *szTurnUsername, const char *szTurnPassword, int iTurnKeepAlivePeriodSecs, UtlBoolean bEnableICE, uint32_t samplesPerSec=0, OsMsgDispatcher *pDispatcher=NULL) |
void | setDispatcher (OsMsgDispatcher *dispatcher) |
Set the dispatcher for flowgraph independent media events/messages. More... | |
CpMediaInterfaceFactoryImpl * | getFactoryImplementation () |
Static Public Member Functions | |
static OsStatus | addCodecPaths (const size_t nCodecPaths, const UtlString codecPaths[]) |
Add directory paths to the codec search path. More... | |
static void | clearCodecPaths () |
Clear the static codec path list. More... | |
static int | getInputDeviceList (UtlContainer &deviceNames) |
Get list of audio input device names available. More... | |
static int | getOutputDeviceList (UtlContainer &deviceNames) |
Get list of audio output device names available. More... | |
Static Public Attributes | |
static int(* | sGetInputDeviceListFunction )(UtlContainer &) |
static int(* | sGetOutputDeviceListFunction )(UtlContainer &) |
Protected Attributes | |
CpMediaInterfaceFactoryImpl * | mpFactoryImpl |
Private Member Functions | |
CpMediaInterfaceFactory & | operator= (const CpMediaInterfaceFactory &rhs) |
CpMediaInterfaceFactory (const CpMediaInterfaceFactory &rCpMediaInterfaceFactory) | |
The CpMediaInterfaceFactory is responsible for create media interfaces. Developers must install factory implementation by invoking the setFactoryImplementation(...) method.
The destructor of this factory will automatically destroy the CpMediaIntefaceFactoryInterface.
Default constructor
|
virtual |
Destructor
|
private |
Disabled copy constructor
void setFactoryImplementation | ( | CpMediaInterfaceFactoryImpl * | pFactoryInterface | ) |
Set the factory implementation for creating media processing connections. If an existing factory was set, it will be deleted and the new factory will be used for future calls to createMediaInterface.
The factory will automatically be deleted when the destructor of CpMediaInterfaceFactory is invoked.
CpMediaInterface * createMediaInterface | ( | const char * | publicAddress, |
const char * | localAddress, | ||
int | numCodecs, | ||
SdpCodec * | sdpCodecArray[], | ||
const char * | locale, | ||
int | expeditedIpTos, | ||
const char * | szStunServer, | ||
int | iStunPort, | ||
int | iStunKeepAlivePeriodSecs, | ||
const char * | szTurnServer, | ||
int | iTurnPort, | ||
const char * | szTurnUsername, | ||
const char * | szTurnPassword, | ||
int | iTurnKeepAlivePeriodSecs, | ||
UtlBoolean | bEnableICE, | ||
uint32_t | samplesPerSec = 0 , |
||
OsMsgDispatcher * | pDispatcher = NULL |
||
) |
Create a media interface using the designated CpMediaIntefaceFactoryInterface.
samplesPerSec | Zero takes default |
void setDispatcher | ( | OsMsgDispatcher * | dispatcher | ) |
Set the dispatcher for flowgraph independent media events/messages.
|
static |
Add directory paths to the codec search path.
Specify directories that will be added to the list of paths used when searching for codecs to load.
[in] | codecPaths | - array of paths to load. |
OS_SUCCESS | - if all of the paths passed in are properly stored. |
|
static |
Clear the static codec path list.
CpMediaInterfaceFactoryImpl * getFactoryImplementation | ( | ) |
|
static |
Get list of audio input device names available.
|
static |
Get list of audio output device names available.
|
private |
Disabled equals operator
|
static |
|
static |
|
protected |