Issue #75: Error Handling

>From Shijun Sun:

You need to describe the circumstances under which error events will occur. Examples include DTLS transport and ICE transport.

The “onerror” interface is not defined correctly. There is no need of custom event here.

Same on the “onstatechange” and some other events. If custom event is needed, the spec can say, “Fire a trust event with the name statechange, that does not bubble and is not cancelable, that uses the StateChangedEvent interface.”

 interface StateChangedEvent: Event {
   readonly attribute RTCDtlsTransportState state;
 };

getStats, RTCErrorCallback/failureCallback is not defined or used anywhere.

Received on Friday, 2 May 2014 15:19:01 UTC