Intent to implement and Ship in Blink-In-JS: WebRTC Promise-based API
Contact emails
Spec
Summary
The WEBRTC WG has had functions that call (succes, failure) callbacks. These are in present use.
It has recently (Q4 2014) added overloaded APIs that use Promises for the same functions.
This intent-to-implement is for supporting those additional APIs.
The work on adapter.js has proved that it’s possible to support these functions in ~20 lines of Javascript, using only Web-exposed APIs. We therefore propose to implement these using Blink-in-JS; this means that the work will involve support for returning a Promise from a Blink-in-JS function.
WebRTC in Blink-in-JS won't require any private script API.
We're planning to support Promise in Blink-in-JS in a way in which it doesn't leak JS objects of private scripts.
Motivation
The arguments for a promise-based style of API are well known. Customers are already querying us about when we will make the Promise-based API available.
Compatibility Risk
This change is positive for compatibility; Firefox already supports this feature.
The API is thought to be stable for WebRTC 1.0.
Ongoing technical constraints
None.
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes.
OWP launch tracking bug
Link to entry on the feature dashboard
None (advice sought on creating one).
Requesting approval to ship?
Yes.