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

addIceCandidate needs an error callback

From: Eric Rescorla <ekr@rtfm.com>
Date: Thu, 2 May 2013 11:59:59 -0700
Message-ID: <CABcZeBOs2BdB2_Ag7aKqhEq4hMoOhDuV=nzdKrTAc+OHENjJsQ@mail.gmail.com>
To: public-webrtc@w3.org
The spec says about addIceCandidate()

An exception with an RTCError object of type INVALID_CANDIDATE_TYPE is
thrown if candidate parameter is malformed.

I believe this doesn't match with our agreed error handling principles:

Say I add a candidate with a bogus candidate string (e.g., a missing "typ"
field or something).

Like malformed SDP, this should be handled with an error callback.

-Ekr
Received on Thursday, 2 May 2013 19:01:07 UTC

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