NEW254129
[PWA] Video stream stops when control center is opened
https://bugs.webkit.org/show_bug.cgi?id=254129
Summary [PWA] Video stream stops when control center is opened
kaletise
Reported 2023-03-18 22:42:00 PDT
Context: I have a web app with a hash router. Once I am done analysing the camera stream and showing results my router changes the hash to a result route. When I come back to the camera view, I am prompted for the camera permissions again, even though I never left the web app. This behaviour does not happen in Safari for iOS. I am working on a web app that uses camera. I noticed that when the application is running in standalone PWA mode, the video stream stops when either control center or notification center is opened, or even being opened. After this happens, user have to forcefully close the PWA from App Switcher and open it again in order for PWA to start the video stream again. Steps to reproduce: 1) Open https://qrcodescan.in in Safari and add it to the home screen 3) Open the PWA from home screen and give it camera permission once it asks 4) Open control center/notification center, then close it In standalone mode: video stream stops until the app is forcefully closed and reopened In browser mode: video stream does not stop
Attachments
Radar WebKit Bug Importer
Comment 1 2023-03-25 22:42:13 PDT
Chris
Comment 2 2023-03-30 00:32:53 PDT
(In reply to kaletise from comment #0) > Context: > I have a web app with a hash router. Once I am done analysing the camera > stream and showing results my router changes the hash to a result route. > When I come back to the camera view, I am prompted for the camera > permissions again, even though I never left the web app. This behaviour does > not happen in Safari for iOS. > I am working on a web app that uses camera. I noticed that when the > application is running in standalone PWA mode, the video stream stops when > either control center or notification center is opened, or even being > opened. After this happens, user have to forcefully close the PWA from App > Switcher and open it again in order for PWA to start the video stream again. > > Steps to reproduce: > 1) Open https://qrcodescan.in in Safari and add it to the home screen > 3) Open the PWA from home screen and give it camera permission once it asks > 4) Open control center/notification center, then close it > > In standalone mode: video stream stops until the app is forcefully closed > and reopened > In browser mode: video stream does not stop this bug is mentioned in https://bugs.webkit.org/show_bug.cgi?id=252465
Note You need to log in before you can comment on or make changes to this bug.