| Summary: | [SafariViewServices] WebRTC can’t access camera feed when returning from a native application | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Dimitri Friedli <dimitri> | ||||
| Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED MOVED | ||||||
| Severity: | Critical | CC: | bfulgham, milen.yordanov, webkit-bug-importer, youennf | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari 15 | ||||||
| Hardware: | iPhone / iPad | ||||||
| OS: | iOS 16 | ||||||
| Attachments: |
|
||||||
|
Description
Dimitri Friedli
2022-04-28 06:30:08 PDT
It might be that the video is interrupted (see https://bugs.webkit.org/show_bug.cgi?id=239842 for instance). Would calling video.play() fix the issue? Would you be able to reproduce the issue and send me the corresponding sysdiagnose (youenn@apple.com), ideally with the timestamp of the issue? (In reply to youenn fablet from comment #1) > It might be that the video is interrupted (see > https://bugs.webkit.org/show_bug.cgi?id=239842 for instance). > Would calling video.play() fix the issue? > > Would you be able to reproduce the issue and send me the corresponding > sysdiagnose (youenn@apple.com), ideally with the timestamp of the issue? Hey, unfortunately, video.play() does not seem to resolve the issue. Re sysdiagnose: The browser console does not output any error – the installed PWA just can't access the camera feed anymore. It should be reproducible using the steps mentioned. We did some testing with the released iOS 16 version, and the issue is still persistent. I tested it on iOS 16.4, the issue is still present. This is what happens: ### Safari Mode 1) Open Safari. 1.1) Navigate to https://safari-15-webrtc-issues.netlify.app 1.2) Switch to another app 1.3) Switch back to Safari 1.4) The video track receives events 'muted' and 'unmuted'. The audio track receives no events. 1.5) The app continues to work as expected. ### Homescreen standalone app 2) Open Safari, navigate to https://safari-15-webrtc-issues.netlify.app, Add to Homescreen to install the app on the iPhone 2.1) Open the app from the homescreen 2.2) Switch to another app 2.3) Switch back to the app 2.4) Both video and audio tracks receive event 'ended'. track.readyState is also 'ended'. 2.5) The app does not work anymore. The stream is not usable and GUM have to be called again. The user have to allow usage of the webcam and the mic, AGAIN. Is this the expected behaviour of the apps installed to the homescreen? To me it seems like a BUG. Just switching to another app should not KILL the audio and video streams. > To me it seems like a BUG. Just switching to another app should not KILL the
> audio and video streams.
Right, a fix is indeed needed outside of WebKit.
The cause of this issue is outside of WebKit, so resolving as MOVED. The relevant team is working on the issue under rdar://98308077. |