Bug 274599
| Summary: | REGRESSION(iOS 17.5): getUserMedia camera access doesn't work in the simulator | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ali Juma <ajuma> |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ahmad.saleem792, bfulgham, jer.noble, thorton, webkit-bug-importer, wenson_hsieh, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ali Juma
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
<rdar://problem/128678958>
Brent Fulgham
Hi Ali: Could you please confirm which iOS version worked properly? Was it iOS 17.4, or even an earlier release?
Ali Juma
(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
*** This bug has been marked as a duplicate of bug 272551 ***
youenn fablet
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
(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
(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