ccRTP
|
Dynamic payload format objects. More...
#include <formats.h>
Public Member Functions | |
DynamicPayloadFormat (PayloadType type, uint32 rate) | |
Constructor. | |
![]() | |
PayloadType | getPayloadType () const |
Get payload type numeric identifier carried in RTP packets. | |
uint32 | getRTPClockRate () const |
Get RTP clock rate for this payload format. | |
Additional Inherited Members | |
![]() | |
PayloadFormat () | |
PayloadFormat must not be used but as base class. | |
virtual | ~PayloadFormat () |
PayloadFormat must not be used but as base class. | |
void | setPayloadType (PayloadType pt) |
Set payload type numeric identifier carried in RTP packets. | |
void | setRTPClockRate (uint32 rate) |
Set RTP clock rate. | |
![]() | |
static const uint32 | defaultRTPClockRate |
Dynamic payload format objects.
Class of payload formats objects for payload types dynamically negotiated. Because these payloads do not have a fix RTP clock rate assigned, it must be specified to the constructor. This class will be used by applications that support dynamic payload negotiation.
DynamicPayloadFormat::DynamicPayloadFormat | ( | PayloadType | type, |
uint32 | rate | ||
) |
Constructor.
Builds a dynamic payload format from payload numeric identifier and the corresponding RTP clock rate.
type | payload type numeric identifier. |
rate | RTP clock rate. |