OpalRTPAVPMediaType Class Reference

`#include <mediatype.h>`

Inheritance diagram for OpalRTPAVPMediaType:

## Public Member Functions

| OpalRTPAVPMediaType (const char *mediaType, const char *sdpType, unsigned requiredSessionId=0, OpalMediaType::AutoStartMode autoStart=OpalMediaType::DontOffer)
virtual PString | GetRTPEncoding () const
OpalMediaSession * | CreateMediaSession (OpalConnection &, unsigned) const
Public Member Functions inherited from OpalMediaTypeDefinition
| OpalMediaTypeDefinition (const char *mediaType, const char *sdpType, unsigned requiredSessionId=0, OpalMediaType::AutoStartMode autoStart=OpalMediaType::DontOffer)
| Create a new media type definition. More...
virtual | ~OpalMediaTypeDefinition ()
OpalMediaType::AutoStartMode | GetAutoStart () const
void | SetAutoStart (OpalMediaType::AutoStartMode v)
void | SetAutoStart (OpalMediaType::AutoStartMode v, bool on)
virtual bool | UsesRTP () const
virtual RTP_UDP * | CreateRTPSession (OpalRTPConnection &conn, unsigned sessionID, bool remoteIsNAT)
unsigned | GetDefaultSessionId () const
virtual std::string | GetSDPType () const
virtual SDPMediaDescription * | CreateSDPMediaDescription (const OpalTransportAddress &localAddress)=0

## Additional Inherited Members

Protected Attributes inherited from OpalMediaTypeDefinition
std::string | m_mediaType
unsigned | m_defaultSessionId
OpalMediaType::AutoStartMode | m_autoStart
std::string | m_sdpType

## Constructor & Destructor Documentation

OpalRTPAVPMediaType::OpalRTPAVPMediaType | ( | const char * | mediaType,
|  | const char * | sdpType,
|  | unsigned | requiredSessionId = `0`,
|  | OpalMediaType::AutoStartMode | autoStart = `OpalMediaType::DontOffer`
| ) |  |

## Member Function Documentation

OpalMediaSession* OpalRTPAVPMediaType::CreateMediaSession | ( | OpalConnection & | connection,
|  | unsigned | sessionID
| ) |  | const

virtual

Create a media session suitable for the media type.

Reimplemented from OpalMediaTypeDefinition.

virtual PString OpalRTPAVPMediaType::GetRTPEncoding | ( |  | ) | const

virtual

Get the string used for the RTP_FormatHandler PFactory which is used to create the RTP handler for the this media type possible values include "rtp/avp" and "udptl"

Only valid if UsesRTP return true

Implements OpalMediaTypeDefinition.

The documentation for this class was generated from the following file:

- mediatype.h