webrtc_sendrecv.py: Handle LATENCY messages

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3742>
This commit is contained in:
Nirbheek Chauhan 2023-01-18 07:36:47 +05:30 committed by GStreamer Marge Bot
parent 5500c228f6
commit 6a83602601

View file

@ -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()