[Webkit-unassigned] [Bug 221752] New: enumerateDevices does only returns one videoinput device for multi-lense devices
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 11 06:47:57 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=221752
Bug ID: 221752
Summary: enumerateDevices does only returns one videoinput
device for multi-lense devices
Product: WebKit
Version: Safari 14
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebRTC
Assignee: webkit-unassigned at lists.webkit.org
Reporter: matthias.rauch at rubicon.eu
CC: youennf at gmail.com
We developed a website where are able to scan barcodes via WebRTC. Since barcode scanning does not work well with wide-angle cameras, we also added a small feature where the user can select the camera to use for scanning. To achieve this we list all cameras returned from navigator.mediaDevices.enumerateDevices() for the user to choose from. The chosen deviceId is then passed in the constraints to navigator.mediaDevices.getUserMedia().
This works well on Android devices, because navigator.mediaDevices.enumerateDevices() returns multiple videoinput devices for the back facing cameras where one of them is always the telelens (=non wide-angle) camera.
In contrast navigator.mediaDevices.enumerateDevices() on iOS 14 only ever returns two videoinput devices (front camera, back camera). That is also the case for devices like iPhone 11 or iPhone 7 Plus where multiple back-facing lenses are available. This is especially a problem with iPhone 7 Plus where the wide-angle camera is selected as the default back camera and cannot be changed by the user.
--
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/20210211/c80044a3/attachment.htm>
More information about the webkit-unassigned
mailing list