W3C home > Mailing lists > Public > public-webrtc@w3.org > February 2013

Re: Another API issue: addStream has no callbacks

From: Adam Bergkvist <adam.bergkvist@ericsson.com>
Date: Tue, 26 Feb 2013 08:17:50 +0100
Message-ID: <512C619E.10407@ericsson.com>
To: Justin Uberti <juberti@google.com>
CC: Harald Alvestrand <harald@alvestrand.no>, "public-webrtc@w3.org" <public-webrtc@w3.org>
On 2013-02-26 03:13, Justin Uberti wrote:
> There may be reasons for addStream to fail (e.g the PeerConnection has
> been closed), but I don't think exhausting encoders is one of them. Any
> resources are not reserved until createOffer/setLocal.
>
> addStream simply adds the supplied stream to the list of local streams
> known to the PeerConnection.

and fires the negotiationneeded event when appropriate.

As far as I see it (which may not be the entire picture), the failures 
we need to deal with here belongs to the category of bad input and 
state. And those can be dealt with using exceptions.

/Adam
Received on Tuesday, 26 February 2013 07:18:14 UTC

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