[libnice] Restarting the agent

Olivier Crête olivier.crete at collabora.com
Mon Sep 15 05:47:39 PDT 2014


Hi,

On 09/15/2014 07:31 AM, B Andrei wrote:
> Hi,
> 
> What is the proper way to restart the agent? I mean to start again
> gathering of candidates and hole punching process, not to free the
> resources.
> 
> The function nice_agent_restart() doesn't seems to work. If I call it
> the current hole is not close, rx callback is still called when new data
> is received.

An ICE restart is mostly if you want to change the target, it does not
have to gather again.

If you want re-start the gathering process, then you need to create a
new stream (or even a new agent).

-- 
Olivier Crête
olivier.crete at collabora.com


More information about the nice mailing list