User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0 Build ID: 20121006022900 Steps to reproduce: I was looking into the Camera API, Actual results: and I didn't see a way to directly control the camera's flash (if there is one). Expected results: I would like to be able to turn on the flash and leave it on without taking a picture. I've also created a github issue for the request: https://github.com/mozilla-b2g/gaia/issues/5797
Summary: flash control → Feature request: Direct camera flash control
This is exposed through the .flashMode attribute: http://mxr.mozilla.org/mozilla-central/source/dom/camera/nsIDOMCameraManager.idl#222
Are you sure? I don't think so. From what I can tell flashMode just determine whether the flash will very briefly turn on during picture taking only.
(In reply to bradpitcher from comment #2) > Are you sure? I don't think so. From what I can tell flashMode just > determine whether the flash will very briefly turn on during picture taking > only. If it's set to "auto" or "on", that will be the expected behaviour. If it's set to "off", the flash won't fire at all; and if it's set to "torch", then it will stay on until it is set to something else. (Assuming .capabilities.flashModes lists "torch" in its supported modes.)
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.