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

Validity period of createOffer() offers.

From: Eric Rescorla <ekr@rtfm.com>
Date: Fri, 1 Jun 2012 13:55:43 -0700
Message-ID: <CABcZeBNPc8heTtsOMF-k_s-nWDe5-FpbGi_07QZuyy1_x86FYA@mail.gmail.com>
To: public-webrtc@w3.org
The specification explicitly states that the following snippet is
guaranteed to succeed (S

  pc.createOffer(function(offer) {
    pc.setLocalDescription("offer", offer);

Now consider the following snippet:

  pc.createOffer(function(offer) {
    setTimeout(function() {
         pc.setLocalDescription("offer", offer);
      }, 1000);

The spec suggests that this is not guaranteed to succeed, but is it
reasonable for the application programmer to expect it to
succeed? Phrased differently, would an implementation which refused
any setLocalDescription() outside of the createOffer() callback
even if no other conditions had changed be conformant?

Received on Friday, 1 June 2012 20:56:52 UTC

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