[Webkit-unassigned] [Bug 198040] getDisplayMedia can fail when called from a user gesture handler

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 22 16:41:23 PDT 2019


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

--- Comment #4 from youenn fablet <youennf at gmail.com> ---
> A subsequent call to getDisplayMedia works just fine, but increasing
> the delay to 1s causes the error message too.

We currently bound the user gesture duration to 1s.

> The work-around is viable, but I'd it's still consider it a "work-around".
> It's not clear why you'd have to invoke gDM before gUM, right?

My example is invoking gum first, then gdm.
It is not waiting for gum response to call gdm response.

The questions might be:
1. Can your application live with just screen, just camera or require both?
2. Do you want to ask the user for gdm in case gum is rejected?

The current design does not allow you to not ask gdm if gum is rejected without another user gesture.

Note though that two prompts that are happening shortly one after the other might be confusing to the user.
A more user friendly flow might be to enter a room and at that time trigger gum or gdm. Then have the user interact with the UI to enable the other one.

-- 
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/20190522/3b6cf588/attachment-0001.html>


More information about the webkit-unassigned mailing list