EMIPLIB  1.2.1
Public Member Functions | Protected Member Functions | List of all members
MIPRTPComponent Class Reference

An RTP transmission component which uses an RTPSession object (from the JRTPLIB library). More...

#include <miprtpcomponent.h>

Inheritance diagram for MIPRTPComponent:
Inheritance graph
[legend]
Collaboration diagram for MIPRTPComponent:
Collaboration graph
[legend]

Public Member Functions

bool init (jrtplib::RTPSession *pSess, uint32_t silentTimestampIncrement=0)
 Initializes the component. More...
 
bool destroy ()
 De-initializes the component. More...
 
void setSilentSampleIncrement (uint32_t silentTimestampIncrement)
 See the MIPRTPComponent::init function for the meaning of this parameter. More...
 
void setEnableSending (bool f)
 This flag controls if RTP packets are actually sent out, useful for a push-to-talk system for example (enabled by default). More...
 
- Public Member Functions inherited from MIPComponent
virtual void lock ()
 Locks the current component. More...
 
virtual void unlock ()
 Unlocks the current component. More...
 
virtual bool processFeedback (const MIPComponentChain &chain, int64_t feedbackChainID, MIPFeedback *feedback)
 Add feedback information about this component. More...
 
std::string getComponentName () const
 Returns the name of the component. More...
 
- Public Member Functions inherited from MIPErrorBase
std::string getErrorString () const
 Returns the last known error description. More...
 

Protected Member Functions

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...
 
- Protected Member Functions inherited from MIPComponent
 MIPComponent (const std::string &componentName)
 Create a component with the specified name. More...
 
- Protected Member Functions inherited from MIPErrorBase
void setErrorString (const std::string &str) const
 Stores an error description. More...
 

Detailed Description

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.

Member Function Documentation

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
pSessThe JRTPLIB RTPSession object which will be used to receive and transmit RTP packets.
silentTimestampIncrementWhen 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: