Closed Bug 933022 Opened 11 years ago Closed 3 years ago

Add controls to getUserMedia in-use dropdown doorhanger to revoke access and to mute/unmute

Categories

(Firefox :: Site Permissions, defect)

25 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: edwong, Unassigned)

Details

(Whiteboard: [getusermedia])

Attachments

(3 files)

Once you turn on your camera, I can't turn it off.
1. goto: 
https://chat.meatspac.es/
2. allow camera access
3. try to turn off camera access

result: you can't on Fx but you can on chrome.  see attached
Version: 23 Branch → 25 Branch
This appears to be a known(?) australis problem (I know there are known bugs around the WebRTC permission doorhangers, and I think geolocation).  I believe this applies to the other bug you filed on chat.meatspac.es as well.

When filing UI bugs found running Australis, please verify on a non-Australis build.
Component: WebRTC: Audio/Video → General
Product: Core → Firefox
What do you mean by "can't turn off camera access". I don't see any difference between Firefox release, nightly, or UX.
Flags: needinfo?(edwong)
(I'm not aware of any Australis bugs with doorhangers. We pass tests, if you know of problems please file bugs!)
Hit refresh. Firefox's camera access is temporal, Chrome's is not, so Chrome needs a UI for turning it off, Firefox does not.
comment #3: this I'm on non-Australis

comment #4: This is a general usability issue, not specific to Firefox Version.  The User Story I'm encountering is: As a Firefox user I want to toggle my camera on and off when I'm on a website so that when I'm eating, I can video mute in a group chat.

comment #6: I understand this is temporal, but refreshing the page/site in a video chat is not an acceptable work around when I want to toggle my video camera access.  Website developers could put a toggle on the page, but *users* should be in control of their camera and mic.
Flags: needinfo?(edwong)
(In reply to Edwin Wong [:edwong] from comment #7)
> comment #3: this I'm on non-Australis

Sorry, screen shot I was sure showed Australis.  The second image being chrome confused me (and I haven't used Australis).

> comment #4: This is a general usability issue, not specific to Firefox
> Version.  The User Story I'm encountering is: As a Firefox user I want to
> toggle my camera on and off when I'm on a website so that when I'm eating, I
> can video mute in a group chat.

The dev can add a button that does "localvideo1.mozSrcObject.getVideoTracks()[0].enabled = false;" or equivalent.  This is available on http://mozilla.github.com/webrtc-landing/pc_test.html  See below though.


> comment #6: I understand this is temporal, but refreshing the page/site in a
> video chat is not an acceptable work around when I want to toggle my video
> camera access.  Website developers could put a toggle on the page, but
> *users* should be in control of their camera and mic.

The original design was to allow such things (revoke access really; though mute/unmute were also discussed as features that should be available via chrome so the app can't act like it muted and not actually do so).  However, the UI design was simplified to get it in in time for FF20.  Clearly this should be revisited.
OS: Mac OS X → All
Hardware: x86 → All
Summary: unable to turn off camera when using webRTC → Add controls to getUserMedia in-use dropdown doorhanger to revoke access and to mute/unmute
Whiteboard: [getusermedia]
(In reply to Edwin Wong [:edwong] from comment #7)
> The User Story I'm encountering is: As a Firefox user I want to
> toggle my camera on and off when I'm on a website so that when I'm eating, I
> can video mute in a group chat.

You probably want to audio mute as well, unless you're a quiet eater.

(In reply to Randell Jesup [:jesup] from comment #8)
> The dev can add a button that does
> "localvideo1.mozSrcObject.getVideoTracks()[0].enabled = false;" or
> equivalent.  This is available on
> http://mozilla.github.com/webrtc-landing/pc_test.html  See below though.

I notice that the camera light stays on even when I mute both audio and video this way, which means that (except in local test apps that show the other side) there's no feedback on whether muting works.

> > comment #6: I understand this is temporal, but refreshing the page/site in a
> > video chat is not an acceptable work around when I want to toggle my video
> > camera access.  Website developers could put a toggle on the page, but
> > *users* should be in control of their camera and mic.
> 
> The original design was to allow such things (revoke access really; though
> mute/unmute were also discussed as features that should be available via
> chrome so the app can't act like it muted and not actually do so).  However,
> the UI design was simplified to get it in in time for FF20.  Clearly this
> should be revisited.

A regular (i.e. non-Wireshark-wielding) user effectively has to trust https://chat.meatspac.es not to listen during mute, which I agree is an issue.
Component: General → Device Permissions

Since Bug 1643027 there a global mute toggles which can be turned on via Nightly experiments under "WebRTC Global Mute Toggles". Active WebRTC device sharing can be stopped via the permission doorhanger.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: