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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 11 11:10:38 PDT 2020


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

--- Comment #8 from Daniel <daniel at remotely.fm> ---
(In reply to Eric Carlson from comment #7)
> (In reply to Daniel from comment #6)
> > I'm experiencing the same issue as above (tested on iOS 13.3.1, iPhone 7 &
> > iPhone 8, with both a wired headset and AirPods). Using
> > https://s3.amazonaws.com/safari-devices-testing/index.html only 'iPhone
> > Microphone' is listed.
> 
> Are the other devices listed after a call to getUserMedia?
> 
> enumerateDevices only returns the default devices until the user grants
> device access with getUserMedia to lessen the use of this API for
> fingerprinting (https://webkit.org/blog/7763/a-closer-look-into-webrtc/).

List before getUserMedia():
[
 {deviceId: "", kind: "audioinput", label: "", groupId: "", toJSON: function},
 {deviceId: "", kind: "videoinput", label: "", groupId: "", toJSON: function}
]

list after getUserMedia():
[
 {deviceId: "AFBAD73FC671AF21C6FAABF0F07FD446A1C36AED", kind: "audioinput", label: "iPhone Microphone", groupId: "", toJSON: function},
 {deviceId: "7049D645D2B1E988105392107FFEA5F5D9BACECD", kind: "videoinput", label: "Front Camera", groupId: "", toJSON: function},
 {deviceId: "513F58EDA3D167900B14BFE113AAE7E1B072521C", kind: "videoinput", label: "Back Camera", groupId: "", toJSON: function}
]

The list remains the same with wired headset/airpods connected.

-- 
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/20200311/c701dfc7/attachment.htm>


More information about the webkit-unassigned mailing list