mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
webrtc_sendrecv.py: Print an error on unknown JSON message
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1864>
This commit is contained in:
parent
90da0e1d1e
commit
e0378f9913
1 changed files with 2 additions and 0 deletions
|
@ -220,6 +220,8 @@ class WebRTCClient:
|
||||||
candidate = ice['candidate']
|
candidate = ice['candidate']
|
||||||
sdpmlineindex = ice['sdpMLineIndex']
|
sdpmlineindex = ice['sdpMLineIndex']
|
||||||
self.webrtc.emit('add-ice-candidate', sdpmlineindex, candidate)
|
self.webrtc.emit('add-ice-candidate', sdpmlineindex, candidate)
|
||||||
|
else:
|
||||||
|
print_error('Unknown JSON message')
|
||||||
|
|
||||||
def close_pipeline(self):
|
def close_pipeline(self):
|
||||||
if self.pipe:
|
if self.pipe:
|
||||||
|
|
Loading…
Reference in a new issue