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

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