WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 272551
274599
REGRESSION(iOS 17.5): getUserMedia camera access doesn't work in the simulator
https://bugs.webkit.org/show_bug.cgi?id=274599
Summary
REGRESSION(iOS 17.5): getUserMedia camera access doesn't work in the simulator
Ali Juma
Reported
2024-05-23 11:04:40 PDT
Prior to iOS 17.5, getUserMedia camera access worked in the simulator (in WKWebView-based apps but not in Safari) in the sense that after the user accepted the permission prompt, the web page would receive a test pattern simulating a video stream coming from the camera. Chrome for iOS relies on this behavior for unit and integration tests involving camera permission prompts. However, on iOS 17.5, this no longer works -- after the user accepts the prompt, the video capture fails. In the console, we get the following output on
https://webrtc.github.io/samples/src/content/getusermedia/gum/
: [Log] Got stream with constraints: – {audio: false, video: true} (user-script:29, line 1) [Log] Using video device: Mock video device 1 (user-script:29, line 1) [Error] A MediaStreamTrack ended due to a capture failure
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-05-24 06:28:37 PDT
<
rdar://problem/128678958
>
Brent Fulgham
Comment 2
2024-05-24 14:33:20 PDT
Hi Ali: Could you please confirm which iOS version worked properly? Was it iOS 17.4, or even an earlier release?
Ali Juma
Comment 3
2024-05-26 14:34:43 PDT
(In reply to Brent Fulgham from
comment #2
)
> Hi Ali: Could you please confirm which iOS version worked properly? Was it > iOS 17.4, or even an earlier release?
It was working in 17.4 (as well as in earlier releases).
youenn fablet
Comment 4
2024-05-27 02:26:35 PDT
*** This bug has been marked as a duplicate of
bug 272551
***
youenn fablet
Comment 5
2024-05-27 02:27:54 PDT
This is probably a dupe of
https://bugs.webkit.org/show_bug.cgi?id=272551
. @Ali, do you see release logging in the GPU process like: "Unable to set media environment, failing capture."?
Ali Juma
Comment 6
2024-05-27 06:58:48 PDT
(In reply to youenn fablet from
comment #5
)
> This is probably a dupe of
https://bugs.webkit.org/show_bug.cgi?id=272551
. > @Ali, do you see release logging in the GPU process like: > "Unable to set media environment, failing capture."?
Yes, I do see that logging. Thanks for the pointer to the fix!
youenn fablet
Comment 7
2024-05-27 07:02:38 PDT
(In reply to Ali Juma from
comment #6
)
> (In reply to youenn fablet from
comment #5
) > > This is probably a dupe of
https://bugs.webkit.org/show_bug.cgi?id=272551
. > > @Ali, do you see release logging in the GPU process like: > > "Unable to set media environment, failing capture."? > > Yes, I do see that logging. Thanks for the pointer to the fix!
It might be a fallout of
https://bugs.webkit.org/show_bug.cgi?id=270995
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