Use get_offer instead of subscripting for better compatibility.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 24 Jun 2020 18:01:16 +0000 (20:01 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 24 Jun 2020 18:01:16 +0000 (20:01 +0200)
laplace_client.py

index 4180f3014d233d1b4e101881673abfd92e6dba95..0aa7f50b2f223cb6b6bb2aacd616e4e197fb649e 100755 (executable)
@@ -51,7 +51,7 @@ class WebRTCClient:
         log.info('on_offer_created')
         promise.wait()
         reply = promise.get_reply()
-        offer = reply['offer']
+        offer = reply.get_value('offer')
         promise = Gst.Promise.new()
         self.webrtc.emit('set-local-description', offer, promise)
         promise.interrupt()