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

Re: asynchrony for addStream w/ error/success callbacks

From: Eric Rescorla <ekr@rtfm.com>
Date: Fri, 10 Jan 2014 09:09:07 -0800
Message-ID: <CABcZeBNfdbNtkg6vOJ3DE52_DEOxdosx0CSgH9t6ArrtYihYWQ@mail.gmail.com>
To: Jan-Ivar Bruaroey <jib@mozilla.com>
Cc: Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com>, Martin Thomson <martin.thomson@gmail.com>, "public-webrtc@w3.org" <public-webrtc@w3.org>
On Fri, Jan 10, 2014 at 9:04 AM, Jan-Ivar Bruaroey <jib@mozilla.com> wrote:
> Good point about it being odd, tough I disagree it would be unrecoverable,
> as addStream would presumably push streams to a temporary list that
> createOffer discards (or prunes) if it fails.

And how am I to discover what went wrong? What a baffling API semantic.

> Should addStream(a), addStream(b), removeStream(a), createOffer() work? That
> would not be possible unless the validation was deferred (along with the
> rest of the actions) to createOffer.

Huh? The right thing here is simply to have AddStream() fail, which doesn't
leave you in this state at all.

Received on Friday, 10 January 2014 17:10:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:17:53 UTC