From bdcdbfeaaffb76e06d1bcfbef337ba5427bc8580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 10 Jul 2023 19:54:45 +0300 Subject: [PATCH] webrtcsink: Set config-interval=-1 and aggregate-mode=zero-latency on rtph26[45]pay Part-of: --- net/webrtc/src/webrtcsink/imp.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/webrtc/src/webrtcsink/imp.rs b/net/webrtc/src/webrtcsink/imp.rs index b70d2fb1..4a7798e2 100644 --- a/net/webrtc/src/webrtcsink/imp.rs +++ b/net/webrtc/src/webrtcsink/imp.rs @@ -553,6 +553,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); + } _ => (), }