A receiver comprising: a jitter buffer configured to store packets of a media stream to provide a jitter compensated flow of packets, wherein each packet includes a timestamp; and a processing device configured: - to determine a timestamp S(k) of each packet k to be fetched from the jitter buffer based on the receiver time, R k, and on a jitter buffer delay J of the jitter buffer; and - to set the value of J based on an error, M k, between predicted reception time, R k ", of each packet and a measured reception time, R k, of each packet, characterized in that the predicted reception time, R k, is generated based on the timestamp, E k, of each packet k and on parameters c and d, where c is an estimated clock rate ratio between a sender's clock and a local clock of the receiver, the sender's clock being used to generate the timestamp of each packet, and d is a clock offset between the sender's clock and the local clock, and in that the processing device is configured to determine the timestamp S(k) based on the following formula: S k = 1 / c R k − d − J where R k is the receiver time and J is the jitter buffer delay of the jitter buffer. a jitter buffer configured to store packets of a media stream to provide a jitter compensated flow of packets, wherein each packet includes a timestamp; and a processing device configured: - to determine a timestamp S(k) of each packet k to be fetched from the jitter buffer based on the receiver time, R k, and on a jitter buffer delay J of the jitter buffer; and - to set the value of J based on an error, M k, between predicted reception time, R k ", of each packet and a measured reception time, R k, of each packet, characterized in that the predicted reception time, R k, is generated based on the timestamp, E k, of each packet k and on parameters c and d, where c is an estimated clock rate ratio between a sender's clock and a local clock of the receiver, the sender's clock being used to generate the timestamp of each packet, and d is a clock offset between the sender's clock and the local clock, and in that the processing device is configured to determine the timestamp S(k) based on the following formula: S k = 1 / c R k − d − J where R k is the receiver time and J is the jitter buffer delay of the jitter buffer. - to determine a timestamp S(k) of each packet k to be fetched from the jitter buffer based on the receiver time, R k, and on a jitter buffer delay J of the jitter buffer; and - to set the value of J based on an error, M k, between predicted reception time, R k ", of each packet and a measured reception time, R k, of each packet, characterized in that the predicted reception time, R k, is generated based on the timestamp, E k, of each packet k and on parameters c and d, where c is an estimated clock rate ratio between a sender's clock and a local clock of the receiver, the sender's clock being used to generate the timestamp of each packet, and d is a clock offset between the sender's clock and the local clock, and in that the processing device is configured to determine the timestamp S(k) based on the following formula: S k = 1 / c R k − d − J where R k is the receiver time and J is the jitter buffer delay of the jitter buffer.