W3C home > Mailing lists > Public > public-webrtc@w3.org > July 2013

Re: Proposal: Different specifications for different target audiences

From: Roman Shpount <roman@telurix.com>
Date: Fri, 19 Jul 2013 14:13:54 -0400
Message-ID: <CAD5OKxv1rspRxQjQ3zLBXp8RvdY77nK6xUvV-SN_K-znY5RkUQ@mail.gmail.com>
To: cowwoc <cowwoc@bbs.darktech.org>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
I have mentioned this previously but I dislike this approach. As far as I
am concerned there is no difference between integrators and web developers.
The reason current API is so difficult to use is that it uses terms and
abstractions that have very little relationship with either underlying
capabilities or desired functionality.

So, my approach to API design would be different:

a. Determine the underlying functionality based on use cases. You never
define API methods based on use cases, this is bad design. You define
capabilities. These would be things like I should be able to send audio and
video over DTLS-SRTP, data over SCTP over DTLS for data, etc

b. Create the API that provides complete control of the underlying
capabilities at the lowest possible level without sacrificing overall
security or performance. You want to expose all the system capabilities as
close to the bare metal as possible with only possible restrictions being
security (no raw socket access from browser javascript) and performance (no
javascript codecs, at least not yet). API should give access to all system
functionality regardless of the use case which will require such access.
There should be concrete security or performance reason to deny access to
features. This API should also be testable and unambiguously predictable
(which is much more important then extendable API), so no string blob or
dictionary interfaces.

c. For users with common use cases you create javascript libraries that
implement them.

As a result we will have capabilities to address all the use cases, browser
implementers will need to create as little code as possible, and
application developers will be in control of their own destiny.

All of this being said, this is all wishful thinking. Right now I would
settle for a predictable and testable API with functionality currently
available in the browsers.
Roman Shpount
Received on Friday, 19 July 2013 18:14:23 UTC

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