Re: How to get the raw RTP packet buffer?

Federico Montesino Pouzols <[email protected]>
Newsgroups gmane.comp.gnu.ccrtp.devel
Message-ID <20060411090825.GA5645@paraguas>
Hi, Milong...

On Thu, Apr 06, 2006 at 04:38:27PM +0800, Milong wrote:
> Hi, ccrtp-devel, 
> 
> How can I get the buffer which include the whole RTP packet buffer from ccRtp?
> As far as I know, RTPSession::getData() can get the rtp payload.
> But I want to get the buffer witch include the rtp header and rty payload.
> Please advise. Thanks.
> 

I think IncomingRTPPacket::getRawPacket is what you are looking
for. If you want to do low level processing on raw packets just after
receiving them, the onRTPPacketRecv(IncomingRTPPkt&) virtual method of
input queues is probably a good place to do so.

The IncomingRTPPkt class also provides methods for accessing all
fields in RTP headers.

> Best Regards,
> 
> Milong
> 
> 2006-04-06
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.