Issue regarding setRemote description in webrtc bin in python

:cross_mark: 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?

This is incorrect usage of the set-remote-description signal. The second arg should be the session desc (webrtc_sdp i guess) and the third arg should be a GstPromise.

Have you checked the existing examples? subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py for instance?

not yet , will check now