W3C home > Mailing lists > Public > public-webrtc@w3.org > May 2012

Re: Question about sync / async for createOffer and createAnswer

From: Martin Thomson <martin.thomson@gmail.com>
Date: Thu, 10 May 2012 11:50:33 -0700
Message-ID: <CABkgnnVoO+GAu7p0ZwG=V3wKNYDh0Vp4Guh_Ogx=zpiSwfa7DA@mail.gmail.com>
To: "Ravindran, Parthasarathi" <pravindran@sonusnet.com>
Cc: Cullen Jennings <fluffy@cisco.com>, "public-webrtc@w3.org" <public-webrtc@w3.org>, Justin Uberti <juberti@google.com>, Adam Bergkvist <adam.bergkvist@ericsson.com>
On 9 May 2012 23:47, Ravindran, Parthasarathi <pravindran@sonusnet.com> wrote:
> Async proposal looks more appropriate as createOffer is equivalent to get
> capability of the browser and setLocalDescription is based on the policy of
> the WebRTC application. Based on my Customer Premises Equipment development
> understanding, it takes time to load the specific codec into DSP based
> devices and not possible to load all the codec at the same time.

That's an argument for setLocalDescription being async.  It's still
likely a good argument for createOffer/createAnswer being async too,
but you wont be actually loading codecs in response to createOffer.

Of course, everything should be async so that we have to write code like:

a(function(b) {
  b.c(function(d) {
    d.e(function(f) {
     // etc...
Received on Thursday, 10 May 2012 18:51:03 UTC

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