W3C home > Mailing lists > Public > public-webrtc@w3.org > February 2014

Re: Panic between createOffer() and setLocalDescription()

From: <piranna@gmail.com>
Date: Thu, 20 Feb 2014 13:43:24 +0100
Message-ID: <CAKfGGh1p8BpeEKY0S_1kTuWJ55bmf+iHD3zzkdTG4yWTnECoOw@mail.gmail.com>
To: Thomas Bruun <thomas@appear.in>
Cc: Harald Alvestrand <harald@alvestrand.no>, public-webrtc <public-webrtc@w3.org>
> Keep in mind that setLocalDescription() today doesn't just set a
> variable on the RTCPeerConnection object. For example, it starts ICE
> gathering. What you suggest assumes that the developer wishes to start
> this process when calling createOffer().
I agree, in the most of the situations this is what the developer wants.

> We have identified scenarios where we would want to do something with
> the sdp (either edit or inspect it), before we decide if we want to
> call setLocalDescription(). If setLocalDescription() is called
> implicitly, we need our code to hold of on relaying the offer and ICE
> candidates to the remote client in those scenarios.

I'm not a telco expert, but what you say makes sense. On the other
hand, I find it a specific special case, that can be solved with a
"negotiated" flag as DataChannels does have: for the most common cases
you can ignore it.

"Si quieres viajar alrededor del mundo y ser invitado a hablar en un
monton de sitios diferentes, simplemente escribe un sistema operativo
- Linus Tordvals, creador del sistema operativo Linux
Received on Thursday, 20 February 2014 12:44:12 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:38 UTC