OPAL
Version 3.18.8
|
#include <mediatype.h>
Public Member Functions | |
OpalMediaTypeDefinition (const char *mediaType, const char *mediaSession, unsigned defaultSessionId=0, OpalMediaType::AutoStartMode autoStart=OpalMediaType::DontOffer) | |
Create a new media type definition. More... | |
virtual | ~OpalMediaTypeDefinition () |
const OpalMediaType & | GetMediaType () const |
OpalMediaType::AutoStartMode | GetAutoStart () const |
void | SetAutoStart (OpalMediaType::AutoStartMode v) |
void | SetAutoStart (OpalMediaType::AutoStartMode v, bool on) |
unsigned | GetDefaultSessionId () const |
const PCaselessString & | GetMediaSessionType () const |
Protected Attributes | |
OpalMediaType | m_mediaType |
PCaselessString | m_mediaSessionType |
unsigned | m_defaultSessionId |
OpalMediaType::AutoStartMode | m_autoStart |
This class defines the type used to define the attributes of a media type
OpalMediaTypeDefinition::OpalMediaTypeDefinition | ( | const char * | mediaType, |
const char * | mediaSession, | ||
unsigned | defaultSessionId = 0 , |
||
OpalMediaType::AutoStartMode | autoStart = OpalMediaType::DontOffer |
||
) |
Create a new media type definition.
mediaType | name of the media type (audio, video etc) |
mediaSession | name of media session class (via factory) |
defaultSessionId | Session ID to use |
autoStart | Default value for auto-start transmit & receive |
|
virtual |
|
inline |
Get flags for media type can auto-start on call initiation.
References m_autoStart.
Referenced by OpalMediaType::GetAutoStart().
|
inline |
Return the default session ID for this media type.
References m_defaultSessionId.
|
inline |
Return the default session type (factory name) for this media type.
References m_mediaSessionType.
|
inline |
References m_mediaType.
|
inline |
Set flag for media type can auto-start receive on call initiation.
References m_autoStart.
Referenced by OpalManager::SetAutoStartReceiveVideo(), and OpalManager::SetAutoStartTransmitVideo().
void OpalMediaTypeDefinition::SetAutoStart | ( | OpalMediaType::AutoStartMode | v, |
bool | on | ||
) |
|
protected |
Referenced by GetAutoStart(), and SetAutoStart().
|
protected |
Referenced by GetDefaultSessionId().
|
protected |
Referenced by GetMediaSessionType().
|
protected |
Referenced by GetMediaType().