While running the liveMedia client to receive RTP packets I acquire
some statistics on the streamed data. I can easily get the total
number of packets received and the number of bytes received like
this:
pVideoSrc->RTPgs()->statsGroupIncoming.totNumPackets()
pVideoSrc->RTPgs()->statsGroupIncoming.totNumBytes()
(RTPSource *pVideoSrc = pSubSession->rtpSource();)
I would also like to check if packet loss occurred. I don't see any
public method or member that can give me this. There is just this
private member variable fPacketLossInFragmentedFrame of
MultiFramedRTPSouce.
Is there any method I can use on the source to find number of
packets lost so far?
Yes. You can use the "RTPReceptionStats" class for this. For
illustration, look at how the "openRTSP" client application
implements the "-Q" option (see "testProgs/playCommon.cpp").
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel