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.

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

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