How to dynamically set latency after rtpjitterbuffer is in PLAYING state?

In gstreamer, how to dynamically set latency after rtpjitterbuffer is in PLAYING state?

You can change the latency property at any time, and then will have to call gst_bin_recalculate_latency() on the pipeline to have it take proper effect.

You should get a LATENCY message on the bus whenever changing the latency property, which tells you to call gst_bin_recalculate_latency(). That message is also posted under other circumstances.

Thank you, I tested this method and it worked.

1 Like