[Webkit-unassigned] [Bug 174833] mediaDevices.enumerateDevices() is missing audioinput devices on iOS

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 27 13:39:01 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=174833

Luke Mizuhashi <luke.mizuhashi at abilityapp.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luke.mizuhashi at abilityapp.o
                   |                            |rg

--- Comment #5 from Luke Mizuhashi <luke.mizuhashi at abilityapp.org> ---
I'm having a similar issue:

I'm writing an app that allows people with disabilities to search for places and services that are accessible to their particular requirements (vis. search for hotels that work with your accessibility device, etc.)

So, we will have a lot of end users who have computers with cameras attached via USB, more than two cameras, perhaps zero, etc.

And yet, our app needs a button to cycle through media streams. So, hard-coding around the `navigator.mediaDevices.getUserMedia({ video: { facingMode: 'user' }})` pattern won't be ideal.

We would like to use something like `navigator.mediaDevices.enumerateDevices().then(deviceInfoList => cache = deviceInfoList);`

followed by:

`someElement.on('click', () => { navigator.mediaDevices.getUserMedia({ video: { deviceId: cache.nextId() }}) }`, but because the device ID's reported by Safari change unpredictably inside a single session we are unable to use device ID reliably.

We've tested on iOS 11.4 (15F79) with Safari 5.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180827/af87f48f/attachment-0001.html>


More information about the webkit-unassigned mailing list