Re: Strawman Promises consensus position, based on Thursday's telechat

On 2014-10-03 12:00, Harald Alvestrand wrote:
> *<<*At the end of Thursday's telechat, there was still no smooth
> consensus of the TF detected.
>
> However, there was a position proposed that might serve as something
> people could live with.
> I've tried to capture it below; I'd like people on the list to reply
> with one of:
>
> "I can live with it"
> "I cannot live with it"
>
> This is done in order to get a sense of the group - I have a feel, but
> want it verified.
> I'm sure there will be other comments. Bring them on.
>
> --------------
> *
>
> On the promises, the following is the strawman consensus position:
>
>
> In the version of getusermedia that gets sent out for Last Call, we make
> the following changes:
>
>
>   * navigator.mediaDevices.getUserMedia gets changed to return a promise.
>
>   *applyConstraint returns a promise.
>
>   *enumerateDevices returns a promise.
>
>   *navigator.getUserMedia has callbacks
>
>   *We do not re-discuss whether or not to remove navigator.getUserMedia
>     from the spec in the foreseeable future (2 years?)
>
>
> <<< note: I*'**m not sure if the next piece belongs or not. It serves to
> make the definition complete,
> and was certainly described in Jan-Ivar's slides. Comments welcome. >>>
>
> *
>
> The definition of navigator.getUserMedia in the spec will be that it
> will behave exactly like:
>
>
> navigator.prototype.getUserMedia = function(constraints, success, failure) {
>    var p = navigator.mediaDevices.getUserMedia(constraints);
>    p.then(success, failure);
> }
>
> *
> -------------
>
> Fire away!

[x] "I can live with it"
[ ] "I cannot live with it"

There's one point above that says "navigator.getUserMedia has 
callbacks". Should this be reflected in the document, and if so, how?

We have already removed getUserMedia() from the NavigatorUserMedia 
interface, and there's been a discussion that we should not spec up APIs 
with callbacks unless they are are already backed up by implementations. 
To the last point: navigator.webkitGetUserMedia() and 
navigator.mozGetUserMedia() have implementations, but 
navigator.getUserMedia() has not.

/Adam

Received on Tuesday, 7 October 2014 06:28:40 UTC