- From: Eric Rescorla <ekr@rtfm.com>
- Date: Fri, 1 Jun 2012 13:55:43 -0700
- To: public-webrtc@w3.org
The specification explicitly states that the following snippet is
guaranteed to succeed (S 4.1.11.2):
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?
-Ekr
Received on Friday, 1 June 2012 20:56:52 UTC