Gstreamer webrtcbin flow stuck at add-ice-candidate signal
deepanshu
deepanshu.saxena30 at gmail.com
Thu Feb 25 18:40:44 UTC 2021
Hi All,
I am working on getting a webrtc stream from Wowza Streaming Engine in the
Gstreamer pipeline using the webrtcbin plugin, and decode the stream frame
by frame. I am implementing in Python taking reference from webrtc_sendrecv
(
https://github.com/centricular/gstwebrtc-demos/blob/master/sendrecv/gst/webrtc_sendrecv.py
<https://github.com/centricular/gstwebrtc-demos/blob/master/sendrecv/gst/webrtc_sendrecv.py>
)
I am able to send and receive OFFER and ANSWER messages using the websockets
connection, set the local-description and remote-description based on the
SDP message I receive.
The final step is that I receive the remote ICE candidate, I should be able
to add it using the
self.webrtc.emit('add-ice-candidate', sdpmlineindex, candidate)
But I believe the candidate is not getting added properly because as per the
GST debug logs Peer connection state doesnot change from "connecting" to
"connected".
Following is the ICE candidate I receive from remote
candidate:0 1 UDP 50 XX.XX.XX.XX 6982 typ host generation 0
Can anyone suggest what might be the issue?
These are the logs after the 'add-ice-candidate' signal is emit
0:00:00.196992865 1833 0x1bc1280 INFO webrtcbin
gstwebrtcbin.c:1009:_update_ice_connection_state_task:<mysendrecv> ICE
connection state change from new(0) to checking(1)
0:00:00.197004451 1833 0x1bc1280 INFO webrtcbin
gstwebrtcbin.c:1044:_update_peer_connection_state_task:<mysendrecv> Peer
connection state change from new(0) to connecting(1)
0:00:00.383940418 1833 0x1bc1280 INFO webrtcbin
gstwebrtcbin.c:974:_update_ice_gathering_state_task:<mysendrecv> ICE
gathering state change from gathering(1) to complete(2)
Nothing happens after this.
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list