W3C home > Mailing lists > Public > public-webrtc@w3.org > February 2012

Re: Use of .iceState and .sdpState

From: Timothy B. Terriberry <tterriberry@mozilla.com>
Date: Fri, 10 Feb 2012 12:45:06 -0800
Message-ID: <4F3581D2.4050208@mozilla.com>
CC: public-webrtc@w3.org
Dominique Hazael-Massieux wrote:
> Hi,
>
> That question may become irrelevant if we adapt a JSEP-based proposal,
> but I'm curious as to why the current PeerConnection interface exposes
> iceState and sdpState — it's not obvious to me what use cases makes it
> useful for the application to know state of the SDP and ICE agents to
> that level (in the current approach).

The primary use I see is helping the webapp developer debug their 
application (i.e., "It got this far before it broke" or "It took X ms to 
complete ICE negotiation"). I agree with Adam that it's not the greatest 
API for that. We could rely on console error messages instead (which I 
don't think need to be standardized, but would be harder to access 
programmatically, e.g., to collect statistics in a live, deployed 
system), or add a real error reporting mechanism (which is probably a 
bit of work, though worthwhile).
Received on Friday, 10 February 2012 20:45:30 UTC

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