[Webkit-unassigned] [Bug 232599] Local and remote video goes black when foregrounded after being backgrounded.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 9 23:48:09 PST 2021


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

daginge at confrere.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daginge at confrere.com

--- Comment #3 from daginge at confrere.com ---
I did some investigation on this and can confirm this bug on 15.1.1.

What I found is that the camera stream goes to muted in both cases if you background and foreground quickly. It works ok if you do it after some time.

Further investigation using https://codepen.io/daginge/pen/jObpmVq shows that if you do it fast, the visibilitychange event doesn't fire as expected in this case.

I suspect what happens is that the OS mutes the camera stream, but the browser doesn't yet know that it was backgrounded. And you have the chance to open the browser again before the browser has time to fire its internal state, and never requests the video stream back. I'm not too familiar with the specifics of Webkit and iOS here though.

To replicate:
- Go to https://codepen.io/daginge/pen/jObpmVq
- Verify that you can see and hear yourself
- Quickly go to the home screen and back (<1 seconds)
- See that the camera is muted, but never unmuted
- Note that the visibilitychange event is not in the logs as expected. If you do it and background for >2 seconds the visibility change event is there and the camera stream works.

Sadly this means that detecting this bug might be hard. Could have a listener for the muted event and see if a visibilitychange is detected, and if nothing happens after 5 seconds prompt the user to restart the stream

-- 
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/20211210/cd2beeb4/attachment.htm>


More information about the webkit-unassigned mailing list