SDPMediaDescription Class Referenceabstract

`#include <sdp.h>`

Inheritance diagram for SDPMediaDescription:

## Public Types

enum | Direction { Undefined = -1, Inactive, RecvOnly, SendOnly, SendRecv }

## Public Member Functions

| SDPMediaDescription (const OpalTransportAddress &address, const OpalMediaType &mediaType)
virtual bool | PreEncode ()
virtual void | Encode (const OpalTransportAddress &commonAddr, ostream &str) const
virtual bool | PrintOn (ostream &strm, const PString &str) const
virtual bool | Decode (const PStringArray &tokens)
virtual bool | Decode (char key, const PString &value)
virtual bool | PostDecode (const OpalMediaFormatList &mediaFormats)
virtual SDPMediaDescription * | CreateEmpty () const =0
virtual PString | GetSDPMediaType () const =0
virtual PCaselessString | GetSDPTransportType () const =0
virtual const SDPMediaFormatList & | GetSDPMediaFormats () const
virtual OpalMediaFormatList | GetMediaFormats () const
virtual void | AddSDPMediaFormat (SDPMediaFormat *sdpMediaFormat)
virtual void | AddMediaFormat (const OpalMediaFormat &mediaFormat)
virtual void | AddMediaFormats (const OpalMediaFormatList &mediaFormats, const OpalMediaType &mediaType)
virtual void | SetAttribute (const PString &attr, const PString &value)
virtual void | SetDirection (const Direction &d)
virtual Direction | GetDirection () const
virtual const OpalTransportAddress & | GetTransportAddress () const
virtual PBoolean | SetTransportAddress (const OpalTransportAddress &t)
virtual WORD | GetPort () const
virtual OpalMediaType | GetMediaType () const
virtual unsigned | GetBandwidth (const PString &type) const
virtual void | SetBandwidth (const PString &type, unsigned value)
virtual const SDPBandwidth & | GetBandwidth () const
virtual void | CreateSDPMediaFormats (const PStringArray &tokens)
virtual SDPMediaFormat * | CreateSDPMediaFormat (const PString &portString)=0
virtual PString | GetSDPPortList () const =0
virtual void | ProcessMediaOptions (SDPMediaFormat &sdpFormat, const OpalMediaFormat &mediaFormat)
unsigned | GetPTime () const
unsigned | GetMaxPTime () const

## Protected Member Functions

virtual SDPMediaFormat * | FindFormat (PString &str) const

## Protected Attributes

OpalTransportAddress | transportAddress
Direction | direction
WORD | port
WORD | portCount
OpalMediaType | mediaType
SDPMediaFormatList | formats
SDPBandwidth | bandwidth
unsigned | ptime
unsigned | maxptime

## Member Enumeration Documentation

enum SDPMediaDescription::Direction

Enumerator
Undefined |
Inactive |
RecvOnly |
SendOnly |
SendRecv |

## Constructor & Destructor Documentation

SDPMediaDescription::SDPMediaDescription | ( | const OpalTransportAddress & | address,
|  | const OpalMediaType & | mediaType
| ) |  |

## Member Function Documentation

virtual void SDPMediaDescription::AddMediaFormat | ( | const OpalMediaFormat & | mediaFormat | ) |

virtual

virtual void SDPMediaDescription::AddMediaFormats | ( | const OpalMediaFormatList & | mediaFormats,
|  | const OpalMediaType & | mediaType
| ) |  |

virtual

virtual void SDPMediaDescription::AddSDPMediaFormat | ( | SDPMediaFormat * | sdpMediaFormat | ) |

virtual

virtual SDPMediaDescription* SDPMediaDescription::CreateEmpty | ( |  | ) | const

pure virtual

Implemented in SDPApplicationMediaDescription, SDPVideoMediaDescription, SDPAudioMediaDescription, and SDPDummyMediaDescription.

virtual SDPMediaFormat* SDPMediaDescription::CreateSDPMediaFormat | ( | const PString & | portString | ) |

pure virtual

Implemented in SDPApplicationMediaDescription, SDPRTPAVPMediaDescription, and SDPDummyMediaDescription.

virtual void SDPMediaDescription::CreateSDPMediaFormats | ( | const PStringArray & | tokens | ) |

virtual

virtual bool SDPMediaDescription::Decode | ( | const PStringArray & | tokens | ) |

virtual

virtual bool SDPMediaDescription::Decode | ( | char | key,
|  | const PString & | value
| ) |  |

virtual

virtual void SDPMediaDescription::Encode | ( | const OpalTransportAddress & | commonAddr,
|  | ostream & | str
| ) |  | const

virtual

virtual SDPMediaFormat* SDPMediaDescription::FindFormat | ( | PString & | str | ) | const

protected virtual

virtual unsigned SDPMediaDescription::GetBandwidth | ( | const PString & | type | ) | const

inline virtual

References bandwidth.

virtual const SDPBandwidth& SDPMediaDescription::GetBandwidth | ( |  | ) | const

inline virtual

References bandwidth.

virtual Direction SDPMediaDescription::GetDirection | ( |  | ) | const

inline virtual

References direction, Inactive, and transportAddress.

unsigned SDPMediaDescription::GetMaxPTime | ( |  | ) | const

inline

References maxptime.

virtual OpalMediaFormatList SDPMediaDescription::GetMediaFormats | ( |  | ) | const

virtual

virtual OpalMediaType SDPMediaDescription::GetMediaType | ( |  | ) | const

inline virtual

References mediaType.

virtual WORD SDPMediaDescription::GetPort | ( |  | ) | const

inline virtual

References port.

unsigned SDPMediaDescription::GetPTime | ( |  | ) | const

inline

References ptime.

virtual const SDPMediaFormatList& SDPMediaDescription::GetSDPMediaFormats | ( |  | ) | const

inline virtual

References formats.

virtual PString SDPMediaDescription::GetSDPMediaType | ( |  | ) | const

pure virtual

Implemented in SDPApplicationMediaDescription, SDPVideoMediaDescription, SDPAudioMediaDescription, and SDPDummyMediaDescription.

virtual PString SDPMediaDescription::GetSDPPortList | ( |  | ) | const

pure virtual

Implemented in SDPApplicationMediaDescription, SDPRTPAVPMediaDescription, and SDPDummyMediaDescription.

virtual PCaselessString SDPMediaDescription::GetSDPTransportType | ( |  | ) | const

pure virtual

Implemented in SDPApplicationMediaDescription, SDPRTPAVPMediaDescription, and SDPDummyMediaDescription.

virtual const OpalTransportAddress& SDPMediaDescription::GetTransportAddress | ( |  | ) | const

inline virtual

References transportAddress.

virtual bool SDPMediaDescription::PostDecode | ( | const OpalMediaFormatList & | mediaFormats | ) |

virtual

virtual bool SDPMediaDescription::PreEncode | ( |  | ) |

virtual

Reimplemented in SDPVideoMediaDescription.

virtual bool SDPMediaDescription::PrintOn | ( | ostream & | strm,
|  | const PString & | str
| ) |  | const

virtual

Reimplemented in SDPVideoMediaDescription, SDPAudioMediaDescription, and SDPRTPAVPMediaDescription.

virtual void SDPMediaDescription::ProcessMediaOptions | ( | SDPMediaFormat & | sdpFormat,
|  | const OpalMediaFormat & | mediaFormat
| ) |  |

virtual

virtual void SDPMediaDescription::SetAttribute | ( | const PString & | attr,
|  | const PString & | value
| ) |  |

virtual

Reimplemented in SDPVideoMediaDescription, SDPAudioMediaDescription, and SDPRTPAVPMediaDescription.

virtual void SDPMediaDescription::SetBandwidth | ( | const PString & | type,
|  | unsigned | value
| ) |  |

inline virtual

References bandwidth.

virtual void SDPMediaDescription::SetDirection | ( | const Direction & | d | ) |

inline virtual

References direction.

virtual PBoolean SDPMediaDescription::SetTransportAddress | ( | const OpalTransportAddress & | t | ) |

virtual

## Field Documentation

SDPBandwidth SDPMediaDescription::bandwidth

protected

Referenced by GetBandwidth(), and SetBandwidth().

Direction SDPMediaDescription::direction

protected

Referenced by GetDirection(), and SetDirection().

SDPMediaFormatList SDPMediaDescription::formats

protected

Referenced by GetSDPMediaFormats().

unsigned SDPMediaDescription::maxptime

protected

Referenced by GetMaxPTime().

OpalMediaType SDPMediaDescription::mediaType

protected

Referenced by GetMediaType().

WORD SDPMediaDescription::port

protected

Referenced by GetPort().

WORD SDPMediaDescription::portCount

protected

unsigned SDPMediaDescription::ptime

protected

Referenced by GetPTime().

OpalTransportAddress SDPMediaDescription::transportAddress

protected

Referenced by GetDirection(), and GetTransportAddress().

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

- sdp.h