So, to get the jitter value in seconds, I've made the following addition in the source code of the file "playCommon.cpp". (from line 1170 to 1175)

1165    RTPReceptionStatsDB::Iterator statsIter(src->receptionStatsDB());
1166    // Assume that there's only one SSRC source (usually the case):
1167    RTPReceptionStats* stats = statsIter.next(True);
1168    if (stats != NULL) {
1169
1170    //code added by myself
1171    double freq = src->timestampFrequency();

You probably need to explicitly convert to 'double' - i.e.
        double freq = (double)(src->timestampFrequency());
That will likely solve your problem.


Another question, the fJitter value is in float, while the return value of the jitter() function is in integer, is it right?
Why this choice?

Because this is the code in RFC 3550, section A.8.
--

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to