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

Re: Validity period of createOffer() offers.

From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 1 Jun 2012 15:02:26 -0700
Message-ID: <CABkgnnXpqhm7cf964mHJ42j+qm9z72j2ouwSMQ6nKxjdKauHqQ@mail.gmail.com>
To: Eric Rescorla <ekr@rtfm.com>
Cc: public-webrtc@w3.org
On 1 June 2012 13:55, Eric Rescorla <ekr@rtfm.com> wrote:
>  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?

My expectation is that this would be acceptable, but it would not have
the guarantee that the first is required to have.  That is, the
"resources" are reserved while the callback runs, but would have to be
"re-acquired" for any later setLocalDescription call; that could fail.
Received on Friday, 1 June 2012 22:02:55 UTC

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