I search on internet and find some formula for calculating the jiter buffer as following
The mean deviation of the difference in packet spacing at the receiver
Si = the RTP timestamp for packet I
Ri = the time of arrival
D(i,j) = (Rj-Sj) - (Ri- Si)
The Jitter is calculated continuously
J(i) = J(i-1) + (| D(i-1,i) | - J(i-1))/16
However, I don't know it is correct or not .
Could some experts give me the formula and show examples in all different cases (have and don't have package lost ...)
Thank for reading .
Note : if it is a very good comment or this is a hard question,
I will give 200 points bonus ==> 400 points for this question.