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

Re: [Bug 26243] Do we need getUserMedia() on MediaDevices?

From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 22 Aug 2014 10:06:08 -0700
Message-ID: <CABkgnnUhHCxpmY2ctccMQEzwFrb4D0pdO_FzXhxFkgd+W4aT0A@mail.gmail.com>
To: Dominique Hazael-Massieux <dom@w3.org>
Cc: Stefan HÃ¥kansson LK <stefan.lk.hakansson@ericsson.com>, "public-media-capture@w3.org" <public-media-capture@w3.org>
On 22 August 2014 06:55, Dominique Hazael-Massieux <dom@w3.org> wrote:
> While esthetically I can understand the change, I don't think aesthetics
> have sufficient values to justify the cost of explaining to thousands of
> developers that their existing
>   navigator.getUserMedia = navigator.webkitGetUserdia ||
> navigator.mozGetUserMedia;


The existing code looks like this:

navigator.getUserMedia = navigator.getUserMedia ||
navigator.webkitGetUserMedia || navigator.mozGetUserMedia;

But what about other browsers?  Don't they get their prefixes too?

And it's easy to change this hack to add the new location.

I think that users with prefixes in their code understand that their
code will be broken and are willing to update.  We can leave a shunt
in place at the prefix for some period, but I don't like the
implication that a half-considered/half-designed feature determines
the state of the browser in perpetuity.
Received on Friday, 22 August 2014 17:06:35 UTC

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