WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
217570
navigator.mediaDevices.getUserMedia() fails on Safari on iPhone with NotAllowedError without explanation
https://bugs.webkit.org/show_bug.cgi?id=217570
Summary
navigator.mediaDevices.getUserMedia() fails on Safari on iPhone with NotAllow...
jujjyl
Reported
2020-10-11 01:02:26 PDT
Calling navigator.mediaDevices.getUserMedia() fails on Safari on iOS with error navigator.mediaDevices.getUserMedia() failed: Unable to start video input! The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. but user was not even asked permission to use the webcam. STR: Visit
https://rexact.itch.io/safari-ios-webcam-test
. The test page works on desktop Chrome, Firefox and Safari, and also on mobile Chrome and Firefox, but not in mobile Safari. A locally examinable copy of the page can be downloaded from
http://clb.confined.space/dump/safari-ios-webcam-test.zip
Expected: The user should be asked permission to use the webcam, or if due to some misconfigured security setting webcam access cannot be acquired, the error message should hint towards the reason (a searchable error identifier that would lead to Apple developer documentation for clear explanation, or error message should contain a direct link a web site that explains how to fix)
Attachments
Add attachment
proposed patch, testcase, etc.
jujjyl
Comment 1
2020-10-11 04:17:57 PDT
Nevermind, it turns out that in iOS settings I had Camera globally set to Deny. After resolving that, the NotAllowedError disappeared. Sorry for the noise!
Alexey Proskuryakov
Comment 2
2020-10-12 17:45:48 PDT
Thank you for the followup!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug