ccrtp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ccrtp-devel] How to send a RTCP SR packet first?


From: Federico Montesino Pouzols
Subject: Re: [Ccrtp-devel] How to send a RTCP SR packet first?
Date: Thu, 11 Oct 2007 19:01:46 +0200 (CEST)
User-agent: SquirrelMail/1.4.5

Hi,

On Mon, October 1, 2007 10:04 am, Martin Runge wrote:
> Any ideas, how to get a SR packet out of an unmodified ccrtp stack at
> before
> or directly after the first data packet?
>

A simple way would be redefining the run() virtual method of the RTPSession
object. The default run() executes controlTransmissionService() and
controlReceptionService() before dispatchDataPacket() and
takeInDataPacket(), so the first RTCP compound is always an RR. If you
switch this order and run the data methods before the control methods,
then the first RTCP compound should be an SR (provided dispatchDataPacket()
has sent something)

> By the way: where to specify the NTP timestamp in the API?
>

There is no way. Both RTP and NTP timestamps are generated internally (in
controlTransmissionService()). Why do you need to specify the timestamp?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]