[Webkit-unassigned] [Bug 188360] mediaDevices in WKWebview is undefined

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 9 01:52:57 PST 2021


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

Vitalii <vitalyd87 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vitalyd87 at gmail.com

--- Comment #11 from Vitalii <vitalyd87 at gmail.com> ---
In Info.plist add:
`Privacy - Camera Usage Description`
https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/requesting_authorization_for_media_capture_on_ios

And in order video element could play from your camera:
```
let webConfiguration = WKWebViewConfiguration()
webConfiguration.allowsInlineMediaPlayback = true
```

How to play: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia

-- 
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/20211209/fd8795c5/attachment.htm>


More information about the webkit-unassigned mailing list