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

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

From: Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com>
Date: Sun, 24 Aug 2014 06:10:08 +0000
To: Dominique Hazael-Massieux <dom@w3.org>
CC: "public-media-capture@w3.org" <public-media-capture@w3.org>
Message-ID: <1447FA0C20ED5147A1AA0EF02890A64B1D053BB2@ESESSMB209.ericsson.se>
On 22/08/14 15:55, Dominique Hazael-Massieux wrote:
> Le vendredi 22 août 2014 ā 09:08 +0000, Stefan Håkansson LK a écrit :
>>> --- Comment #4 from Adam Bergkvist <adam.bergkvist@ericsson.com> ---
>>> Proposed fix:
>>> https://github.com/w3c/mediacapture-main/commit/30c1812084ceee87761f2ee4af9a123b0a604ec6
>> Looks good to me
> I'm personally a bit skeptical we can change navigator.getUserMedia to
> navigator.mediaDevices.getUserMedia now; there is quite a bit of
> existing documentation and knowledge around the existing
> navigator.getUserMedia.

We had a separate thread discussing if we should change or not. Most 
input was in favor of changing with the argument that we're behind 
prefixes (and that existing code will continue to work as long as the 
prefixed versions are supported). Most people were silent though.

> 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;

This code will continue to work only as long as vendor prefixes are in 
place regardless if we change or not (but perhaps the code most use 
looks like what Martin sent - that code will, if we change, break once 
prefixes are not supported any longer).

> is worth fixing.
> Was there another reason to prefer that change? (over to just leave
> getUserMedia entirely out of MediaDevices)

Not that I'm aware of.

> Dom

Received on Sunday, 24 August 2014 06:10:39 UTC

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