2014-09-02 11:28 GMT+02:00 Rajmohan Banavi <
rajmoha...@gmail.com>:
> Section 4 of trickle-ice draft (page 7) mentions that
>
> usages of trickle for specific protocols would need to either:
>
> o Provide a way for agents to verify support of trickle ICE prior to
> initiating a session. XMPP's Service discovery [XEP-0030] is an
> example for one such mechanism;
>
> o Make support for trickle ICE mandatory so that support could be
>
> assumed the agents.
>
>
> Since we do not have any mechanism within webrtc for service discovery, I
> was assuming the second option(mandatory). Given this, Chrome should be
> attempting a Half Trickle mechansim rather than assuming that the other
> party supports trickle ice.
I don't know if I was clear enough in my previous mail.
You are the "specific protocol" builder, so you decide whether your JS
application uses trickle ICE or not. Chrome provides you (the JS
application) with the discovered ICE candidates one by one during the
ICE gathering process (onicecandidate events). And then you (the JS
application) decide whether to signal them all together to the peer or
one by one by using your *own* signaling protocol (SIP, XMPP, custom
amateur JSON based protocol, or whatever).
> Since we do not have any mechanism within webrtc for service discovery
Why not? If you implement a JavaScript XMPP library (over WebSocket
for example) then you *can* implement whatever the XMPP protocol
provides, including the service discovery mechanism. It's up to you.
> Chrome should be attempting a Half Trickle mechansim rather than assuming that the other party supports trickle ice.
Chrome assumes *nothing*. It is your JS code the responsible of
collecting the ICE candidates information provided by the browser and
signaling them to the peer in the fashion you prefer.