webrtcsink: Set config-interval=-1 and aggregate-mode=zero-latency on rtph26[45]pay

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1286>
This commit is contained in:
Sebastian Dröge 2023-07-10 19:54:45 +03:00
parent adb113a591
commit 12bb9afd81

View file

@ -571,6 +571,10 @@ fn setup_encoding(
"rtpvp8pay" | "rtpvp9pay" => {
pay.set_property_from_str("picture-id-mode", "15-bit");
}
"rtph264pay" | "rtph265pay" => {
pay.set_property_from_str("aggregate-mode", "zero-latency");
pay.set_property("config-interval", -1i32);
}
_ => (),
}