webrtcbin: end of remote candidates

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

webrtcbin: end of remote candidates

Bizarre Days
When Firefox browser wants to send candidates to the webrtcbin peer, it calls a custom js method passing an "event" argument to it. The custom method must send this information to the peer. The event has a single field "event.candidate" with a value as:

event.candidate = { "sdpMLineIndex":0,"
  "candidate":"candidate:8 2 TCP 847249918 88.6.179.119 9 typ srflx raddr 192.168.1.12 rport 9 tcptype active"}

At the end, to inform there are no more candidates, Firefox does another call to the same method with event.candidate=undefined

In the other side, webrtcbin (Java API) offers the method "WebRTCBin.addIceCandiate( int sdpM. String candidate ) to inform the plugin about the remote candidates. In the normal case is easy map firefox event.candidate information to these arguments. However, no idea of to handle the end one.

A call WebRTCBin.addIceCandidate(0, null) produces an assertion failed in libnice (when its trace is active).

How to handle in WebRTCBin (Java API) the case of final remote candidate ?

Thanks,






_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: webrtcbin: end of remote candidates

Sebastian Dröge-3
On Thu, 2020-03-26 at 15:38 +0100, Bizarre Days wrote:
>
> How to handle in WebRTCBin (Java API) the case of final remote
> candidate ?

This is currently not supported but there's a MR from yesterday adding
support for this by sending a NULL/"" candidate:
  https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1139

--
Sebastian Dröge, Centricular Ltd · https://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment