W3C home > Mailing lists > Public > public-media-capture@w3.org > October 2014

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

From: Jake Archibald <jaffathecake@gmail.com>
Date: Mon, 6 Oct 2014 16:19:11 +0100
Message-ID: <CAJ5xic9G8KjFd3vHUirgsYXwzssSNgcvdOzfqt-5zY-OtHDNqg@mail.gmail.com>
To: public-media-capture@w3.org
> To be fair, though, just claiming "people are using the prefixed variant"
> isn't totally representative - all they need is "navigator.getUserMedia =
> navigator.getUserMedia || navigator.webkitGetUserMedia ||
> navigator.mozGetUserMedia;" somewhere in their JS, and they can act as if
> it's unprefixed.  The Promises changeover will be a bit more impactful.

The prefixed versions can continue to support successCallback and
errorCallback to avoid this compatibility issue.

But yes, this is absolutely the right time to change this API to return a
promise, as all other specs are doing with async success/failure. If
getUserMedia goes 1.0 with callbacks, it'll be the first API to willfully
ignore promises, and without good reason.

If navigator.getUserMedia is a legacy navigator.mediaDevices.getUserMedia,
then remove the former from the spec now. The prefixed versions can
continue with the callbacks for compatibility.
Received on Monday, 6 October 2014 15:19:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:30 UTC