UI for handling WebRTC camera access requests should show previews
Categories
(Firefox :: Site Permissions, enhancement, P2)
Tracking
()
People
(Reporter: dao, Assigned: emz)
References
(Depends on 1 open bug, Blocks 1 open bug, Regressed 1 open bug)
Details
(Whiteboard: [getUserMedia] [blocking-gum-])
Attachments
(7 files)
|
959.98 KB,
image/png
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
939.46 KB,
image/png
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
1.17 MB,
image/png
|
Details |
Updated•13 years ago
|
Updated•10 years ago
|
Updated•9 years ago
|
| Assignee | ||
Updated•4 years ago
|
Comment 1•1 year ago
|
||
Chrome Canary now supports this as part of chrome://flags/#one-time-permission experiment.
Might be worth up-prioritizing this since we already support preview for screen capture?
| Assignee | ||
Comment 2•6 months ago
•
|
||
I'm prototyping this currently. So far it looks like we mostly need to copy what we have for screen share previews. They do a privileged gUM request. I don't see why we couldn't do that for camera.
I have a working camera preview, but I'm still trying to figure out why the framerate is so low. The video freezes for a couple seconds and only advances for a few frames periodically.
| Assignee | ||
Comment 3•6 months ago
|
||
There is a small UX change needed here. We most likely don't want to show the video preview right when the permission prompt opens. Otherwise sites can indirectly control when the camera is turned on and the user sees the preview. On camera switch this less of a problem, because the user triggered it. We could add a button that toggles the preview on and off. That would enable showing the preview for the pre-selected camera. Alternatively we could just not select camera by default and force the user to select one. But that would make the common scenario of using the first (or only) camera too slow.
| Assignee | ||
Comment 4•6 months ago
|
||
Here is how it looks when I use the screen share preview element for camera preview.
| Assignee | ||
Comment 5•6 months ago
|
||
Updated•6 months ago
|
| Assignee | ||
Comment 6•5 months ago
|
||
Here is a UX draft from Julian I'm looking to implement. It clearly shows users that they can enable the preview and when they do we already have a placeholder so the layout doesn't shift much.
Updated•5 months ago
|
| Assignee | ||
Updated•5 months ago
|
| Assignee | ||
Comment 7•5 months ago
|
||
| Assignee | ||
Comment 8•5 months ago
|
||
Comment 10•5 months ago
|
||
| Assignee | ||
Comment 12•5 months ago
|
||
| Assignee | ||
Updated•5 months ago
|
Comment 13•5 months ago
|
||
Comment 14•5 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/54a9e7679269
https://hg.mozilla.org/mozilla-central/rev/6c1c0e5f2124
https://hg.mozilla.org/mozilla-central/rev/8b9f8d407486
https://hg.mozilla.org/mozilla-central/rev/c8782c8419a5
| Assignee | ||
Comment 15•5 months ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]:
Video preview feature for camera and camera+mic permission dialog.
[Affects Firefox for Android]: No, it's Desktop only
[Suggested wording]:
When a site asks for access to your camera you can now preview it right in the permission dialog. This is especially helpful when switching between multiple cameras.
Comment 17•4 months ago
•
|
||
I wonder if the styling for the button needs to be changed such that it gains more focus attention? The gray colors (Mac, light theme) are hard to notice.
str:
- click a Meet link in cal
- After Meet opens in a tab, note the camera prompt.
Comment 18•4 months ago
|
||
Updated•4 months ago
|
Updated•4 months ago
|
Comment 19•4 months ago
|
||
Verified as fixed using Firefox 143.0b2 on macOS 13, Windows 11 and Ubuntu 22.04. WebRTC camera access request is now showing preview accordingly.
However, I've encountered bug 1984638 while testing on Ubuntu 22.04.
Description
•