OPAL  Version 3.10.10
OpalIMMediaType Class Reference

#include <im.h>

Inheritance diagram for OpalIMMediaType:
OpalMediaTypeDefinition OpalMSRPMediaType OpalSIPIMMediaType

Public Member Functions

 OpalIMMediaType (const char *mediaType, const char *sdpType)
 
PString GetRTPEncoding () const
 
RTP_UDPCreateRTPSession (OpalRTPConnection &, unsigned, bool)
 
virtual bool UsesRTP () 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 OpalMediaSessionCreateMediaSession (OpalConnection &connection, unsigned sessionID) const
 
unsigned GetDefaultSessionId () const
 
virtual std::string GetSDPType () const
 
virtual SDPMediaDescriptionCreateSDPMediaDescription (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

◆ OpalIMMediaType()

OpalIMMediaType::OpalIMMediaType ( const char *  mediaType,
const char *  sdpType 
)
inline
Parameters
mediaTypename of the media type (audio, video etc)
sdpTypename of the SDP type

Member Function Documentation

◆ CreateRTPSession()

RTP_UDP* OpalIMMediaType::CreateRTPSession ( OpalRTPConnection conn,
unsigned  sessionID,
bool  remoteIsNAT 
)
inlinevirtual

Create an RTP session for this media format. By default, this will create a RTP_UDP session with the correct initial format

Only valid if UsesRTP return true

Reimplemented from OpalMediaTypeDefinition.

◆ GetRTPEncoding()

PString OpalIMMediaType::GetRTPEncoding ( ) const
inlinevirtual

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.

◆ UsesRTP()

virtual bool OpalIMMediaType::UsesRTP ( ) const
inlinevirtual

Indicate type uses RTP for transport. If false, then it uses a generic OpaMediaSession

Reimplemented from OpalMediaTypeDefinition.


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