#include <sdp.h>
Public Types | |
enum | Direction { RecvOnly, SendOnly, SendRecv, Inactive, Undefined } |
enum | MediaType { Audio, Video, Application, Image, Unknown, NumMediaTypes } |
Public Member Functions | |
SDPMediaDescription (const OpalTransportAddress &address, MediaType mediaType=Unknown) | |
void | PrintOn (ostream &strm) const |
void | PrintOn (const OpalTransportAddress &commonAddr, ostream &str) const |
BOOL | Decode (const PString &str) |
MediaType | GetMediaType () const |
const SDPMediaFormatList & | GetSDPMediaFormats () const |
OpalMediaFormatList | GetMediaFormats (unsigned) const |
void | CreateRTPMap (unsigned sessionID, RTP_DataFrame::PayloadMapType &map) const |
void | AddSDPMediaFormat (SDPMediaFormat *sdpMediaFormat) |
void | AddMediaFormat (const OpalMediaFormat &mediaFormat, const RTP_DataFrame::PayloadMapType &map) |
void | AddMediaFormats (const OpalMediaFormatList &mediaFormats, unsigned session, const RTP_DataFrame::PayloadMapType &map) |
void | SetAttribute (const PString &attr, const PString &value) |
void | SetDirection (const Direction &d) |
Direction | GetDirection () const |
const OpalTransportAddress & | GetTransportAddress () const |
BOOL | SetTransportAddress (const OpalTransportAddress &t) |
PString | GetTransport () const |
void | SetTransport (const PString &v) |
WORD | GetPort () const |
Protected Member Functions | |
void | PrintOn (ostream &strm, const PString &str) const |
SDPMediaFormat * | FindFormat (PString &str) const |
void | SetPacketTime (const PString &optionName, const PString &value) |
Protected Attributes | |
MediaType | mediaType |
WORD | portCount |
PCaselessString | media |
PCaselessString | transport |
OpalTransportAddress | transportAddress |
WORD | port |
Direction | direction |
SDPMediaFormatList | formats |
SDPMediaDescription::SDPMediaDescription | ( | const OpalTransportAddress & | address, | |
MediaType | mediaType = Unknown | |||
) |
void SDPMediaDescription::PrintOn | ( | ostream & | strm | ) | const |
void SDPMediaDescription::PrintOn | ( | const OpalTransportAddress & | commonAddr, | |
ostream & | str | |||
) | const |
BOOL SDPMediaDescription::Decode | ( | const PString & | str | ) |
MediaType SDPMediaDescription::GetMediaType | ( | ) | const [inline] |
const SDPMediaFormatList& SDPMediaDescription::GetSDPMediaFormats | ( | ) | const [inline] |
OpalMediaFormatList SDPMediaDescription::GetMediaFormats | ( | unsigned | ) | const |
void SDPMediaDescription::CreateRTPMap | ( | unsigned | sessionID, | |
RTP_DataFrame::PayloadMapType & | map | |||
) | const |
void SDPMediaDescription::AddSDPMediaFormat | ( | SDPMediaFormat * | sdpMediaFormat | ) |
void SDPMediaDescription::AddMediaFormat | ( | const OpalMediaFormat & | mediaFormat, | |
const RTP_DataFrame::PayloadMapType & | map | |||
) |
void SDPMediaDescription::AddMediaFormats | ( | const OpalMediaFormatList & | mediaFormats, | |
unsigned | session, | |||
const RTP_DataFrame::PayloadMapType & | map | |||
) |
void SDPMediaDescription::SetAttribute | ( | const PString & | attr, | |
const PString & | value | |||
) |
void SDPMediaDescription::SetDirection | ( | const Direction & | d | ) | [inline] |
Direction SDPMediaDescription::GetDirection | ( | ) | const [inline] |
const OpalTransportAddress& SDPMediaDescription::GetTransportAddress | ( | ) | const [inline] |
BOOL SDPMediaDescription::SetTransportAddress | ( | const OpalTransportAddress & | t | ) |
PString SDPMediaDescription::GetTransport | ( | ) | const [inline] |
void SDPMediaDescription::SetTransport | ( | const PString & | v | ) | [inline] |
WORD SDPMediaDescription::GetPort | ( | ) | const [inline] |
void SDPMediaDescription::PrintOn | ( | ostream & | strm, | |
const PString & | str | |||
) | const [protected] |
SDPMediaFormat* SDPMediaDescription::FindFormat | ( | PString & | str | ) | const [protected] |
void SDPMediaDescription::SetPacketTime | ( | const PString & | optionName, | |
const PString & | value | |||
) | [protected] |
MediaType SDPMediaDescription::mediaType [protected] |
WORD SDPMediaDescription::portCount [protected] |
PCaselessString SDPMediaDescription::media [protected] |
PCaselessString SDPMediaDescription::transport [protected] |
WORD SDPMediaDescription::port [protected] |
Direction SDPMediaDescription::direction [protected] |
SDPMediaFormatList SDPMediaDescription::formats [protected] |