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

Re: pc.localDescription sync/async issue

From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Sat, 13 Dec 2014 01:33:37 +0100
Message-ID: <CALiegfmKFJNw7mLij=ap0sUKe=wHXhofXKdjFVMf0TX=Ks8o+w@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Jan-Ivar Bruaroey <jib@mozilla.com>, "public-webrtc@w3.org" <public-webrtc@w3.org>
2014-12-12 21:28 GMT+01:00 Martin Thomson <martin.thomson@gmail.com>:
> Maybe it would be better if:
>
> "The localDescription attribute includes the last
> RTCSessionDescription that was successfully set using
> setLocalDescription(), which is modified to include any local
> candidates that have been generated by the ICE agent since then."
>
> As written, the text implies that you can do this:
>
>> pc.setLocalDescription(new RTCSessionDescription({ type: "turkey", sdp: "sandwich" }))

The point here is that such a call should just throw an error, which
would invalidate any assumption after it, Am I wrong?


-- 
Iñaki Baz Castillo
<ibc@aliax.net>
Received on Saturday, 13 December 2014 00:34:24 UTC

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