An RTP transmission component which uses an RTPSession object (from the JRTPLIB
library).
More...
#include <miprtpcomponent.h>
|
virtual uint64_t | getSourceID (const jrtplib::RTPPacket *pPack, const jrtplib::RTPSourceData *pSourceData) const |
| Returns the source ID for the packet pPack belonging to source pSourceData . More...
|
|
| MIPComponent (const std::string &componentName) |
| Create a component with the specified name. More...
|
|
void | setErrorString (const std::string &str) const |
| Stores an error description. More...
|
|
This component can transmit and receive RTP messages. It uses the JRTPLIB
RTPSession
class to accomplish this. The RTPSession instance needs to be initialized before the component can be used. Both MIPSYSTEMMESSAGE_TYPE_ISTIME messages and messages of type MIPRTPSendMessage are accepted. Messages produced by this component are of type MIPRTPReceiveMessage.
bool MIPRTPComponent::destroy |
( |
| ) |
|
virtual uint64_t MIPRTPComponent::getSourceID |
( |
const jrtplib::RTPPacket * |
pPack, |
|
|
const jrtplib::RTPSourceData * |
pSourceData |
|
) |
| const |
|
protectedvirtual |
This virtual function returns the source ID when processing packet pPack
originating from source pSourceData
. By default, the 32-bit SSRC value is cast to a 64-bit value and is returned. In case this behaviour is not desirable, you can derive your own class from MIPRTPComponent and you can re-implement this function.
bool MIPRTPComponent::init |
( |
jrtplib::RTPSession * |
pSess, |
|
|
uint32_t |
silentTimestampIncrement = 0 |
|
) |
| |
With this function the component can be initialized.
- Parameters
-
pSess | The JRTPLIB RTPSession object which will be used to receive and transmit RTP packets. |
silentTimestampIncrement | When using some kind of silence suppression or push-to-talk system, it is possible that during certain intervals no messages will reach this component. For these 'skipped' intervals, the RTP timestamp will be increased by this amount. |
void MIPRTPComponent::setEnableSending |
( |
bool |
f | ) |
|
|
inline |
void MIPRTPComponent::setSilentSampleIncrement |
( |
uint32_t |
silentTimestampIncrement | ) |
|
|
inline |
The documentation for this class was generated from the following file: