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

Re: Bug 26243: where should getUserMedia attach

From: Alexandre GOUAILLARD <agouaillard@gmail.com>
Date: Fri, 22 Aug 2014 03:57:54 +0800
Message-ID: <CAHgZEq5erxrHUFvyPk7-UEBTRgPDccFRFtKm2U-9uAzosn3PMw@mail.gmail.com>
To: Jan-Ivar Bruaroey <jib@mozilla.com>
Cc: Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com>, "public-media-capture@w3.org" <public-media-capture@w3.org>
+1


On Mon, Aug 18, 2014 at 10:51 PM, Jan-Ivar Bruaroey <jib@mozilla.com> wrote:

> On 7/9/14 4:04 AM, Stefan Håkansson LK wrote:
>
>> I'd really like to see some more input on this one. Or should we just
>> leave it up to the Editors to decide?
>>
>> Stefan
>>
>> On 2014-07-07 14:32, Stefan Håkansson LK wrote:
>>
>>> Since day one of WebRTC (this was before we spun off the local media
>>> things into a TF) the way to get access to camera and microphone has
>>> been:
>>>
>>> navigator.getUserMedia(....);
>>>
>>> from the spec version of June 19th [1] it is also possible to do
>>>
>>> navigator.mediaDevices.getUserMedia(....);
>>>
>>> Shijun filed a bug on that we should keep one way (not both) [2].
>>>
>>> The comments so far seem to indicate that while
>>> navigator.mediaDevices.getUserMedia is more logical we should only keep
>>> the old navigator.getUserMedia method since many apps are using it. But
>>> there has also been the comment that this is behind vendor prefix so
>>> changing does not have that big consequences
>>>
>>
> Sorry for the later response.At this point, who is going to change their
> code from:
>
>         navigator.mozGetUserMedia(...
>  and/ornavigator.webkitGetUserMedia( ...
>
> to:
>      navigator.getUserMedia(...
>
> rather than:
>      navigator.mediaDevices.getUserMedia(...
>
> and why should we help them?
>
>
>  (and perhaps implementations could support the old prefixed way
>>>   for a long time even if the spec changes).
>>>
>>
> Makes sense to me.
>
>
>  I'd like some more discussion, and a conclusion. What should the spec say?
>>>
>>
> I think the spec should say navigator.mediaDevices.getUserMedia
>
> I also vote we not vendor-prefix mediaDevices.getUserMedia since we're
> nearing completion (then we can avoid discussing where the prefix goes ;-)
> ).
>
> .: Jan-Ivar :.
>
>
>  Stefan
>>>
>>> [1] http://dev.w3.org/2011/webrtc/editor/archives/20140619/
>>> getusermedia.html
>>> [2] https://www.w3.org/Bugs/Public/show_bug.cgi?id=26243
>>>
>>
>


-- 
Alex. Gouaillard, PhD, PhD, MBA
------------------------------------------------------------------------------------
CTO - Temasys Communications, S'pore / Mountain View
President - CoSMo Software, Cambridge, MA
------------------------------------------------------------------------------------
sg.linkedin.com/agouaillard

   -
Received on Thursday, 21 August 2014 19:58:21 UTC

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