From 6a836026015e85d49086e3d58bef9575924c1b08 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 18 Jan 2023 07:36:47 +0530 Subject: [PATCH] webrtc_sendrecv.py: Handle LATENCY messages Part-of: --- subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py b/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py index e2c014f133..5f72485a25 100755 --- a/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py +++ b/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py @@ -143,6 +143,8 @@ class WebRTCClient: elif msg.type == Gst.MessageType.EOS: remove_bus_poll() break + elif msg.type == Gst.MessageType.LATENCY: + self.pipe.recalculate_latency() def send_sdp(self, offer): text = offer.sdp.as_text()