[Webkit-unassigned] [Bug 198040] getDisplayMedia can fail when called from a user gesture handler
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 20 10:52:38 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=198040
--- Comment #2 from youenn fablet <youennf at gmail.com> ---
Hi Philipp,
I guess a workaround is to do:
const gumPromise = navigator.mediaDevices.getUserMedia({ video: true });
const screenPromise = await anavigator.mediaDevices.getDisplayMedia({ video: true });
const camera = await gumPromise;
Would that work for you?
Or do you want to NOT request getDisplayMedia access if getUserMedia is rejected?
I am also not sure why you want to do enumerateDevices there.
FWIW, it will, in most cases, trigger two prompts to the user in a very short amount of time. I wonder whether this is a good application flow.
--
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/20190520/33391235/attachment-0001.html>
More information about the webkit-unassigned
mailing list