But I think that the information I need is the one which comes from the
receiver to the sender because is the Receiver who loses the packets, and
the SR Reports comes from Sender to Receiver. Besides, how can i see the
information of SR Reports? I've tried to do it redefining the functions
OnGotSR() this way:
void onGotSR(SyncSource& source, SendReport& SR, uint8 blocks)
{
RTPSession::onGotSR(source,SR,blocks);
cout << "I got an SR RTCP report from "
<< hex << (int)source.getID() << "@"
<< dec
<< source.getNetworkAddress() << ":"
<< source.getControlTransportPort() << endl;
RTCPSenderInfo SenInf(&(SR.sinfo));
cout << "RTPTimestamp: " << dec << SenInf.getRTPTimestamp() <<endl;
cout << "RTPTimestamp: " << dec << SR.sinfo.RTPTimestamp <<endl;
cout << "Paquetes enviados: " << dec << SR.sinfo.packetCount <<endl;
cout<<"Paquetes enviados: " << dec << SenInf.getPacketCount() << endl;
printf ("Fraction lost: %u\n",
SR.blocks[0].rinfo.fractionLost);
}
But using a RTCPSenderInfo object it doesn't work (the value is the same in
any packet), and accesing directly to the value, i think it's not correct
(The two values are different). What am i doing wrong? How can I see the RR
information after receiving a SR packet? I think I'm lost with it.
Thanks for replies
From: Federico Montesino Pouzols <[EMAIL PROTECTED]>
Reply-To: Federico Montesino Pouzols <[EMAIL PROTECTED]>
To: Mario Mateos <[EMAIL PROTECTED]>
CC: [email protected]
Subject: Re: [Ccrtp-devel] Problem looking lost packets
Date: Tue, 28 Jun 2005 09:42:24 +0200
If you receive SR packets, you have all the information you need. SR
packets include RR-like reports as well as additional (sending)
information.
On Mon, Jun 27, 2005 at 03:11:50PM +0000, Mario Mateos wrote:
> Hi!
> I'm working in a program that sends video files from a machine to
another
> one. I would like to know how i can know how many packets have been lost
> and the fraction lost. I've seen that it's possible looking
ReceiverInfo,
> but my problem is that i only can receive RTCP packets from Sender to
> Receiver, and those are SR Packets and I think that the packets I need
are
> RR packets.
> Somebody knows how can i do it? I wanna do a flow control looking the
> packets lost and reducing the rate if that value is higher than a
maximun.
> The program i use is based on demo programs (RTPSend and RTPListen).
> The way i've seen that no RTCP packets arrive at Sender is redefining
> OnGot(SR-RR-SDES-APP-BYE) functions like is done in RTPListen.
> Thanks
>
>
>
>
> _______________________________________________
> Ccrtp-devel mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/ccrtp-devel
_______________________________________________
Ccrtp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/ccrtp-devel