<div dir="ltr"><div>Would this work after some candidates have already been gathered? I haven't looked in the code, but doesn't each NiceCandidate have its own copy of the credentials as well, which means they should be updated too? Or are they just filled in when you request the local candidates from the application?<br></div><div class="gmail_extra"><div class="gmail_quote"><br></div><div class="gmail_quote">Lorenzo</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">2015-02-24 0:30 GMT+01:00 Rohan Garg <span dir="ltr"><<a href="mailto:rohan16garg@gmail.com" target="_blank">rohan16garg@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey everyone<br>
Been quite some time since I last hacked on libnice, but this looked<br>
like a easy enough task to get back into it, so here's my patch :<br>
<a href="https://github.com/shadeslayer/libnice/compare/set_local_creds.patch" target="_blank">https://github.com/shadeslayer/libnice/compare/set_local_creds.patch</a><br>
<br>
Comes with it's own test as well ;)<br>
<br>
Let me know if this will suffice, or if it can do with improvements.<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888">Rohan Garg<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, Feb 18, 2015 at 8:07 AM, Stefan Håkansson LK<br>
<<a href="mailto:stefan.lk.hakansson@ericsson.com">stefan.lk.hakansson@ericsson.com</a>> wrote:<br>
> Hi Olivier,<br>
><br>
> thanks for the quick reply!<br>
><br>
> On 17/02/15 16:50, Olivier Crête wrote:<br>
>> Hi,<br>
>><br>
>> Adding webrtc-friendly features to libnice is definitely something we<br>
>> care about. But not one is actively working on it. I guess add a simple<br>
>> nice_agent_set_local_credentials() would be enough for this?<br>
><br>
> Yes, to my understanding that would make it.<br>
><br>
>><br>
>> Olivier<br>
>><br>
>> On Tue, 2015-02-17 at 15:13 +0000, Stefan Håkansson LK wrote:<br>
>>> Hi,<br>
>>><br>
>>> webrtc/rtcweb (implicitly) requires that it is possible to supply local<br>
>>> ICE credentials when starting ICE, see <a href="http://rtcweb-wg.github.io/jsep/" target="_blank">http://rtcweb-wg.github.io/jsep/</a>.<br>
>>><br>
>>> I say "implicitly" since ICE credentials must be part of the initial<br>
>>> offer created by createOffer (section 5.2.1), but ICE processing is not<br>
>>> supposed to happen until a subsequent setLocal happens which could be<br>
>>> quite a bit later. Also, createOffer is not really supposed to "do"<br>
>>> anything, things are supposed to start as a result of setLocal meaning<br>
>>> that ICE processing should not start as a result of createOffer.<br>
>>><br>
>>> We're using libnice in our webrtc implementation (which is based on<br>
>>> gstreamer) <a href="https://github.com/EricssonResearch/openwebrtc" target="_blank">https://github.com/EricssonResearch/openwebrtc</a> and this is an<br>
>>> issue for being standards compliant.<br>
>>><br>
>>> My question is (obviously): are there any plans for changing libnice to<br>
>>> enable building webrtc compliant applications?<br>
>>><br>
>>> Stefan<br>
>>> _______________________________________________<br>
>>> nice mailing list<br>
>>> <a href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a><br>
>>> <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
>><br>
><br>
> _______________________________________________<br>
> nice mailing list<br>
> <a href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
_______________________________________________<br>
nice mailing list<br>
<a href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
</div></div></blockquote></div><br></div></div>