31 #ifndef OPAL_OPAL_MEDIATYPE_H 32 #define OPAL_OPAL_MEDIATYPE_H 34 #include <ptbuildopts.h> 35 #include <ptlib/pfactory.h> 67 :
std::string(str) { }
70 :
std::string(str) { }
73 :
std::string((const char *)str) { }
84 static OpalMediaTypeFactory::KeyList_T
GetList() {
return OpalMediaTypeFactory::GetKeyList(); }
112 return strm << mediaType.c_str();
137 const char * mediaType,
138 const char * sdpType,
139 unsigned requiredSessionId = 0,
174 virtual PString GetRTPEncoding()
const = 0;
181 virtual RTP_UDP * CreateRTPSession(
202 {
return m_sdpType; }
222 #define OPAL_INSTANTIATE_MEDIATYPE2(title, name, cls) \ 223 namespace OpalMediaTypeSpace { \ 224 static PFactory<OpalMediaTypeDefinition>::Worker<cls> static_##title##_##cls(name, true); \ 227 #define OPAL_INSTANTIATE_MEDIATYPE(type, cls) \ 228 OPAL_INSTANTIATE_MEDIATYPE2(type, #type, cls) \ 232 template <
char * Type,
char * sdp>
234 template <
char * Type, const
char * sdp>
256 #define OPAL_INSTANTIATE_SIMPLE_MEDIATYPE(type, sdp) \ 257 namespace OpalMediaTypeSpace { \ 258 char type##_type_string[] = #type; \ 259 char type##_sdp_string[] = #sdp; \ 260 typedef SimpleMediaType<type##_type_string, type##_sdp_string> type##_MediaType; \ 262 OPAL_INSTANTIATE_MEDIATYPE(type, type##_MediaType) \ 264 #define OPAL_INSTANTIATE_SIMPLE_MEDIATYPE_NO_SDP(type) OPAL_INSTANTIATE_SIMPLE_MEDIATYPE(type, "") 274 const char * mediaType,
275 const char * sdpType,
276 unsigned requiredSessionId = 0,
280 virtual PString GetRTPEncoding()
const;
310 #if OPAL_T38_CAPABILITY 317 PString GetRTPEncoding(
void)
const;
319 unsigned sessionID,
bool remoteIsNAT);
330 #endif // OPAL_T38_CAPABILITY 336 #endif // OPAL_OPAL_MEDIATYPE_H
Definition: rtpconn.h:525
Definition: rtpconn.h:247
PFACTORY_LOAD(OpalPluginCodecManager)
Definition: connection.h:353
Definition: transports.h:149