This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24875 - Examples in the WebRTC spec are not updated As per the modified API.
Summary: Examples in the WebRTC spec are not updated As per the modified API.
Status: RESOLVED FIXED
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: WebRTC API (show other bugs)
Version: unspecified
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: Web RTC Working Group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-01 05:26 UTC by Kiran
Modified: 2014-06-04 12:08 UTC (History)
3 users (show)

See Also:


Attachments

Description Kiran 2014-03-01 05:26:08 UTC
RTCPeerConnection.addIceCandidate() in [1, 2] has been modified to add success and failure call backs which are non-null arguments.
But the examples in 10.1 and 10.3 in [1] and/or 13.1 and 13.3 of [2] were not modified in [1].
Please update them to the modified API in next version of the spec.

[1] http://dev.w3.org/2011/webrtc/editor/webrtc.html
[2] http://www.w3.org/TR/webrtc/

Thanks,
Kiran.
Comment 1 Adam Bergkvist 2014-03-03 12:30:09 UTC
True; thanks for pointing this out.

Code-wise it gets a bit strange to have a mandatory success callback on this kind of operation. You don't continue the flow of the app in the success callback, it simply says that from now on you shouldn't expect an error from this method.
Comment 2 Kiran 2014-06-04 12:07:12 UTC
fixed in 20140127 version