|
sipxmedialib
Version 3.3
|
Information, specific for an RTP stream. More...
#include <MprRtpDispatcher.h>


Public Member Functions | |
| MpRtpStream () | |
| void | pushPacket (MpRtpBufPtr &pRtp) |
| Push packet to the stream for processing. More... | |
| void | activate (int fromIp, int fromPort) |
| Mark stream as active. More... | |
| void | deactivate () |
| Mark stream as inactive. More... | |
| UtlBoolean | timeoutDeactivate (const OsTime &timeout) |
| Mark stream as inactive, if timeout occurred. More... | |
| UtlBoolean | isActive () const |
| Is this stream marked as active? More... | |
| RtpSRC | getSSRC () const |
| Get stream SSRC. More... | |
| void | setSSRC (RtpSRC ssrc) |
| Set stream SSRC. More... | |
| OsStatus | postStreamNotif (OsMsgDispatcher *pMsgQ, const UtlString &resourceName, MpConnectionID connId, MprnRtpStreamActivityMsg::StreamState state) const |
| Send notification on stream activation/deactivation. More... | |
Public Attributes | |
| int | mStreamId |
| OsTime | mLastPacketTime |
| Time of last packet receive. More... | |
| UtlBoolean | mStreamActive |
| Is this stream active or not? More... | |
| int | mAddress |
| IP address of the stream source. More... | |
| int | mPort |
| Port of the stream source. More... | |
| MpResource * | mpOutputResource |
Information, specific for an RTP stream.
MpRtpStream is inherited from UtlInt to hold SSRC associated with this stream and to store streams in UtlHashBag with fast access by SSRC value.
|
inline |
|
inline |
Push packet to the stream for processing.
|
inline |
Mark stream as active.
|
inline |
Mark stream as inactive.
| UtlBoolean timeoutDeactivate | ( | const OsTime & | timeout | ) |
Mark stream as inactive, if timeout occurred.
|
inline |
Is this stream marked as active?
|
inline |
Get stream SSRC.
|
inline |
Set stream SSRC.
setSSRC() not only sets SSRC of the stream, but also resets decoder to prepare it for a new stream.
Note: activate() should always be called after setSSRC() to eliminate excessive decoder reset on startup.
| OsStatus postStreamNotif | ( | OsMsgDispatcher * | pMsgQ, |
| const UtlString & | resourceName, | ||
| MpConnectionID | connId, | ||
| MprnRtpStreamActivityMsg::StreamState | state | ||
| ) | const |
Send notification on stream activation/deactivation.
| int mStreamId |
Abstract stream ID, used by higher levels to identify a stream.
| OsTime mLastPacketTime |
Time of last packet receive.
| UtlBoolean mStreamActive |
Is this stream active or not?
| int mAddress |
IP address of the stream source.
| int mPort |
Port of the stream source.
| MpResource* mpOutputResource |
Pointer to async output resource, which receives input from RTP stream Also used as a "connected" mark - NULL means this stream is not connected.
1.8.11