Gstreamer webrtcbin flow stuck at add-ice-candidate signal
Matthew Waters
ystreet00 at gmail.com
Fri Feb 26 05:02:39 UTC 2021
Increase the webrtcbin debug level and that will show you some more
information about what is happening.
On 26/2/21 5:40 am, deepanshu wrote:
> 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/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210226/8416a69e/attachment.sig>
More information about the gstreamer-devel
mailing list