14 #ifndef _MprFromNet_h_ 15 #define _MprFromNet_h_ 25 #include <os/OsMsgQ.h> 26 #include "os/OsDefs.h" 79 static OsStatus
setSockets(
const UtlString& resourceName, OsMsgQ& flowgraphMessageQueue, OsSocket* rtpSocket, OsSocket* rtcpSocket);
82 OsStatus
setSockets(OsSocket& rRtpSocket, OsSocket& rRtcpSocket);
86 static OsStatus
resetSockets(
const UtlString& resourceName, OsMsgQ& flowgraphMessageQueue);
122 void setDispatchers(IRTPDispatch *piRTPDispatch, INetDispatch *piRTCPDispatch);
156 INetDispatch* mpiRTCPDispatch;
157 IRTPDispatch* mpiRTPDispatch;
196 #endif // _MprFromNet_h_ Definition: NetInTask.h:62
Message object used to communicate with the media processing task.
Definition: MpResourceMsg.h:30
MprFromNet()
Constructor.
Definition: MprFromNet.cpp:60
virtual ~MprFromNet()
Destructor.
Definition: MprFromNet.cpp:90
int mNumPktsRtp
Total RTP packets received from NetIn.
Definition: MprFromNet.h:166
MprRtpDispatcher * mpRtpDispatcher
Definition: MprFromNet.h:151
OsMutex mRegistrationSyncMutex
Definition: MprFromNet.h:148
Class for RTP stream dispatcher abstraction.
Definition: MprRtpDispatcher.h:42
Flow graph for coordinating the execution of media processing resources.
Definition: MpFlowGraphBase.h:91
int mNumPktsRtcp
Total RTCP packets received from NetIn.
Definition: MprFromNet.h:165
OsStatus rtcpStats(struct RtpHeader *h)
Update the RR info for the current incoming packet.
Definition: MprFromNet.cpp:213
NetInTask * mNetInTask
Definition: MprFromNet.h:149
Smart pointer to MpRtpBuf.
Definition: MpRtpBuf.h:348
int mNumEncDropped
Encoded RTP packets dropped due to no key.
Definition: MprFromNet.h:167
Definition: NetInTask.h:85
OsStatus enableSsrcDiscard(UtlBoolean enable, RtpSRC ssrc)
Enable/disable discarding of given RTP stream.
Definition: MprFromNet.cpp:341
MpFlowGraphBase * mpFlowGraph
Definition: MprFromNet.h:154
rtpHandle mInRtpHandle
Definition: MprFromNet.h:160
int mRtcpCount
Definition: MprFromNet.h:161
UtlBoolean mRegistered
Definition: MprFromNet.h:150
static MpRtpBufPtr parseRtpPacket(const MpUdpBufPtr &buf)
Parse UDP packet and return filled RTP packet buffer.
Definition: MprFromNet.cpp:419
UtlBoolean handleMessage(MpResourceMsg &rMsg)
Handle message to manipulate this.
Definition: MprFromNet.cpp:177
OsStatus resetSockets()
Unregister the inbound RTP and RTCP sockets.
Definition: MprFromNet.cpp:158
OsStatus setRtpDispatcher(MprRtpDispatcher *pRtpDispatcher)
Set RTP dispatcher instance.
Definition: MprFromNet.cpp:350
Task that listen for packets in incoming RTP streams.
Definition: NetInTask.h:109
Smart pointer to MpUdpBuf.
Definition: MpUdpBuf.h:142
RtpSRC mDiscardedSSRC
Definition: MprFromNet.h:153
MprFromNet & operator=(const MprFromNet &rhs)
Assignment operator (not implemented for this class)
The "Decode" media processing resource.
Definition: MprDecode.h:45
int mNumPushed
Total RTP+RTCP pkts received from NetIn.
Definition: MprFromNet.h:164
interface rtpts_t rtpts_t ssrc_t ssrc
Definition: ISetSenderStatistics.h:68
OsStatus pushPacket(const MpUdpBufPtr &buf, bool isRtcp)
Take in a buffer from the NetIn task.
Definition: MprFromNet.cpp:251
UtlBoolean mDiscardSelectedStream
Definition: MprFromNet.h:152
OsStatus setFlowGraph(MpFlowGraphBase *flowgraph)
Definition: MprFromNet.cpp:408
The "From Network" media processing resource.
Definition: MprFromNet.h:55
OsMutex mDiscardCtlMutex
Definition: MprFromNet.h:147
static OsStatus setSockets(const UtlString &resourceName, OsMsgQ &flowgraphMessageQueue, OsSocket *rtpSocket, OsSocket *rtcpSocket)
send a message to a resource containing a MprFromNet to set sockets
Definition: MprFromNet.cpp:121
UtlBoolean resetSocketsInternal(OsEvent *pEvent=NULL)
Unregister the inbound RTP and RTCP sockets.
Definition: MprFromNet.cpp:520
OsStatus getRtcpStats(MprRtcpStats &stats)
retrieve the RR info needed to complete an RTCP packet
Definition: MprFromNet.cpp:205
uint32_t RtpSRC
RTP SSRC or CSRC identifier.
Definition: MpTypes.h:61
int mNumLoopDropped
Looped-back mcast RTP packets dropped.
Definition: MprFromNet.h:168
The "Dejitter" utility class.
Definition: MprDejitter.h:39