#include <sdp.h>
Public Types | |
enum | Direction { RecvOnly, SendOnly, SendRecv, Inactive, Undefined } |
enum | MediaType { Audio, Video, Application, 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) |
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) |
PINDEX | GetPacketTime () const |
void | SetPacketTime (PINDEX milliseconds) |
Protected Member Functions | |
void | PrintOn (ostream &strm, const PString &str) const |
Protected Attributes | |
MediaType | mediaType |
WORD | portCount |
PCaselessString | media |
PCaselessString | transport |
OpalTransportAddress | transportAddress |
Direction | direction |
SDPMediaFormatList | formats |
PINDEX | packetTime |
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 | ) |
const SDPMediaFormatList& SDPMediaDescription::GetSDPMediaFormats | ( | ) | const [inline] |
References formats.
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 OpalTransportAddress& SDPMediaDescription::GetTransportAddress | ( | ) | const [inline] |
References transportAddress.
BOOL SDPMediaDescription::SetTransportAddress | ( | const OpalTransportAddress & | t | ) |
PString SDPMediaDescription::GetTransport | ( | ) | const [inline] |
References transport.
void SDPMediaDescription::SetTransport | ( | const PString & | v | ) | [inline] |
References transport.
PINDEX SDPMediaDescription::GetPacketTime | ( | ) | const [inline] |
References packetTime.
void SDPMediaDescription::SetPacketTime | ( | PINDEX | milliseconds | ) | [inline] |
References packetTime.
void SDPMediaDescription::PrintOn | ( | ostream & | strm, | |
const PString & | str | |||
) | const [protected] |
MediaType SDPMediaDescription::mediaType [protected] |
Referenced by GetMediaType().
WORD SDPMediaDescription::portCount [protected] |
PCaselessString SDPMediaDescription::media [protected] |
PCaselessString SDPMediaDescription::transport [protected] |
Referenced by GetTransport(), and SetTransport().
Referenced by GetTransportAddress().
Direction SDPMediaDescription::direction [protected] |
Referenced by GetDirection(), and SetDirection().
SDPMediaFormatList SDPMediaDescription::formats [protected] |
Referenced by GetSDPMediaFormats().
PINDEX SDPMediaDescription::packetTime [protected] |
Referenced by GetPacketTime(), and SetPacketTime().