Connection handler failed: could not convert type WebRTCSDPType to GstWebRTCSessionDescription required for parameter 0
Traceback (most recent call last):
File “/mnt/e/mcu/backend/server.py”, line 77, in handler
recv.emit(“set-remote-description”, GstWebRTC.WebRTCSDPType.OFFER, sdpmsg)
TypeError: could not convert type WebRTCSDPType to GstWebRTCSessionDescription required for parameter 0
i got this when i tried to set the remote description -
webrtc_sdp = GstWebRTC.WebRTCSessionDescription.new(
GstWebRTC.WebRTCSDPType.OFFER,
sdpmsg
)
print(GstWebRTC.WebRTCSDPType,"**")
recv.emit("set-remote-description", GstWebRTC.WebRTCSDPType.OFFER, sdpmsg)
recv.sync_state_with_parent()
Am i missing out on the usage of the library?