Issue 58: RTCIceListener Example 6 (Section 4.4)

The example code in Section 4.4 (Example 6) is out of sync with the RTCIceListener interface.

var iceOptions = ...;
var iceListener = new RTCIceListener(iceOptions);
sendInitiate(iceListener.getLocalParameters(), function(response) {

//Problem 1: the getLocalParmeters method has been removed.
// Is the intent to use the RTCIceTransport instead, as in:
// var icebase = new RTCIceTransport(RTCIceRole.controlling, iceOptions);
// sendInititiate(icebase.getLocalParameters(), function (response) {

// We may get N responses
var ice = new RTCIceTransport(RTCIceRole.controlling, iceListener);
var ice.setRemoteParameters(response.iceParameters);
ice.start();
// ... setup DTLS, RTP, SCTP, etc.
});

iceListener.oncandidate = sendLocalCandidate;
//Problem 2: The onlocalcandidate event has been removed.
//Is the intent to use instead:
// ice.onlocalcandidate = sendLocalCandidate; 

iceListener.start();

Received on Monday, 14 April 2014 14:57:58 UTC