[Webkit-unassigned] [Bug 226969] New: Accessing navigator.mediaDevices.enumerateDevices after granting permission
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jun 14 07:01:21 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=226969
Bug ID: 226969
Summary: Accessing navigator.mediaDevices.enumerateDevices
after granting permission
Product: WebKit
Version: Other
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebRTC
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jakubesuszynski at gmail.com
CC: youennf at gmail.com
I've noticed that when you ask WKWebView to enumerate devices by navigator.mediaDevices.enumerateDevices, it returns undefined when permissions are not granted. As the WKWebView doesn't ask for permission to camera itself, I've added a function to send message to WebView, and when controller receives it, it asks user for camera permission by AVCaptureDevice.requestAccess(for: .video). When user grant permission, the WKWebView still has the navigator.mediaDevices undefined as long as user won't restart the app. Shouldn't the API be available as soon as user grant permission?
--
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/20210614/85c618e1/attachment-0001.htm>
More information about the webkit-unassigned
mailing list