On Wed, Mar 2, 2016 at 4:13 AM, Michael Froman <[email protected]> wrote:
> What is not clear to me is whether these existing TransportFlows can (or even 
> should) be reused by switching out the NrIceMediaStream held in 
> TransportLayerIce after the ice restart.  Nils mentioned that building all 
> new TransportFlows may also have DTLS considerations.


If you rebuild the entire stack (new TransportLayer instances), then
you will cause a new DTLS connection to be created.  We don't want
that [4].

What you really want is to have two NrIceMediaStream instances active
in a single TransportLayerIce, so that you can do a smooth transition
between the two.  Ideally, you would add both until the second is
fully connected, it may be necessary to have a timer on the old one so
that you can remove it after it has properly drained.  This timer
might be short-ish, just to account for the possibility that the new
stream is faster than the old one, or you could just decide to accept
some packet loss.

[4] Until we decide that we want to implement a=dtls-connection
support, which I would encourage you to defer as long as possible.
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to