[Webkit-unassigned] [Bug 252465] In PWA, HTML Video Element may be unable to play stream from 'getUserMedia()'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 29 00:12:06 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=252465

--- Comment #15 from Chris <chrissyg at protonmail.com> ---
(In reply to cube from comment #14)
> (In reply to thompsoncwt from comment #12)
> > I wrestled with this bug for many months but I think I finally discovered
> > what triggers it. It seems (to me) that it is triggered when you close the
> > app while a portion of the video is off-screen, or after it has been sent
> > off-screen. 
> > 
> > Two ways that seem to reliably reproduce the bug:
> > 1. Have the video element/recording be bigger than the screen and part of
> > the video is clipped or off-screen, then close the app.
> > 2. Have no part of the video element be off screen, but send it off screen
> > for example by using a text input that brings up the keyboard, then close
> > the app.
> > 
> > After either of those 2 things happen, the app will no longer be able to
> > play the stream from getUserMedia(), even after closing and reopening the
> > app. #2 is especially frustrating for my situation because I prompt users to
> > input a title for their recording, which can trigger the bug if users close
> > the app while on that page. This only happens while the app is in PWA mode
> > on iOS, never while using the Safari browser on iOS, and never on a Mac or
> > other PC with either Safari or Chrome.
> > 
> > The only way I've found to recover functionality is to either restart the
> > device like mentioned by Chris, or what has worked for me is closing the app
> > while the prompt that asks the users to Allow the app to access microphone
> > and camera is visible on screen.
> 
> After avoiding the two situations mentioned above, my app works fine(in
> iPhone mini12 IOS 16.3). However, after I upgraded my iPhone to ios 16.4
> today, the bug comes back!!!

Yep I also changed my app according to these potential triggers but the bug is still triggering, it seems to be after the iPad screen times out and you come back to it later on :(

As a side note it also annoys me that pulling down the control center kills the camera - this doesn't happen in native apps. You can usually restart the camera with another getUserMedia() but there's no way programmatically you can detect when somebody has pulled the control center down.

Bug is still present in 16.4 - come on Apple!!!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230329/328d94d9/attachment-0001.htm>


More information about the webkit-unassigned mailing list