<div dir="ltr"><div><div><div><div>I am trying to fully understand how the rtp jitterbuffer works. I have a simple pipeline getting rtp audio packets from a udpsrc which is then processed by an rtpbin element and sent to the alsa sink.<br><br></div>I set the "latency" parameter of the rtpbin to 5s. I understand it maps to the enclosed rtpjitterbuffer element. Now when the stream first starts, there is a 5 second delay before the audio starts playing.<br><br></div>Now I stop the udp sender for a few seconds, and then start it again. At this time, there is no delay, and the pipeline starts playing immediately. However, if I stop the udp sender now, there is a 5 second silenceĀ  after the sender has stopped. This behaviour remains for any subsequent start/stop of the sender.<br><br></div>Can anybody explain both of these behaviours ?<br></div><div><br></div><div>Thanks,<br></div>Ajit.<br></div>