Closed
Bug 1103400
Opened 10 years ago
Closed 9 years ago
Autofocus is not available to unpriviledged / 3rd Party applications
Categories
(Core :: DOM: Device Interfaces, defect)
Core
DOM: Device Interfaces
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: pierre.slamich, Assigned: mikeh)
References
Details
(Keywords: regression)
Attachments
(3 files, 1 obsolete file)
1.20 KB,
patch
|
mikeh
:
review+
|
Details | Diff | Splinter Review |
98.72 KB,
text/plain
|
Details | |
1.91 KB,
patch
|
aosmond
:
review+
mikeh
:
feedback+
bajaj
:
approval-mozilla-b2g37+
|
Details | Diff | Splinter Review |
Continuous Autofocus or Manual Autofocus seems available to System Apps such as Gaia. However, 3rd party applications can't access the API although autofocus is a much needed feature for many use cases (barcode scanner, barcode enabled apps, 3rd party photo apps...) It doesn't look like a privacy related issue, the only issue that I could imagine being hardware support or battery issues. We've started today a port of an application to Firefox OS during a Mozilla sponsored hackathon and this is a showstopper for us. All other major platform do support this feature, and it's the last thing barring us from deploying reliably on FFOS.
Comment 1•10 years ago
|
||
Mike, was this made only for certified apps for a reason?
Flags: needinfo?(mhabicher)
Updated•10 years ago
|
Component: Certification Suite → DOM: Device Interfaces
Product: Firefox OS → Core
Comment 2•10 years ago
|
||
In order to build photo applications with better image quality, access to this autofocus methods is a must have. The getUserMedia does not give this kind of quality, or methods.
Comment 3•10 years ago
|
||
There's a related discussion in bug 749886.
Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #1) > Mike, was this made only for certified apps for a reason? b2g's CameraControl is available to certified and privileged apps. getUserMedia is available to all content, though I don't think it's currently hooked up to the auto-focus API. The simplest solution would be to have gUM set the focus mode to either 'continuous-video' or 'continuous-picture' (the former autofocuses more slowly/smoothly). Provided gUM doesn't try to call autoFocus() or takePicture(), that should be enough to keep the stream in focus.
Flags: needinfo?(mhabicher) → needinfo?(rjesup)
Assignee | ||
Updated•10 years ago
|
Blocks: camera-backlog
Comment 5•10 years ago
|
||
continuous-video, please. For now that should do until the image capture stuff gets done.
Flags: needinfo?(rjesup)
Assignee | ||
Comment 6•10 years ago
|
||
(In reply to Randell Jesup [:jesup] from comment #5) > continuous-video, please. For now that should do until the image capture > stuff gets done. By default, the auto-focus area will be the centre of the frame. Will that be okay?
Assignee: nobody → mhabicher
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(rjesup)
Comment 7•10 years ago
|
||
(In reply to Mike Habicher [:mikeh] from comment #6) > (In reply to Randell Jesup [:jesup] from comment #5) > > > continuous-video, please. For now that should do until the image capture > > stuff gets done. > > By default, the auto-focus area will be the centre of the frame. Will that > be okay? Yes
Flags: needinfo?(rjesup)
Assignee | ||
Comment 8•10 years ago
|
||
try: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=1d2d7576534e
Attachment #8529217 -
Flags: review?(rjesup)
Attachment #8529217 -
Flags: review?(aosmond)
Comment 9•10 years ago
|
||
Comment on attachment 8529217 [details] [diff] [review] Enable autofocus in WebRTC, v1 Review of attachment 8529217 [details] [diff] [review]: ----------------------------------------------------------------- LGTM.
Attachment #8529217 -
Flags: review?(aosmond) → review+
Updated•10 years ago
|
Attachment #8529217 -
Flags: review?(rjesup) → review+
Assignee | ||
Comment 11•10 years ago
|
||
Carrying r+ on landable patch.
Attachment #8529217 -
Attachment is obsolete: true
Attachment #8531789 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(rjesup)
Keywords: checkin-needed
Comment 12•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9acf6e3a887a
Keywords: checkin-needed
Comment 13•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9acf6e3a887a
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Comment 14•9 years ago
|
||
Hi Mike! I've been trying the autofocus with Firefox OS in my Flame device (just flashed with m-c and Gaia master), and it seems not to be working (and it's working within Camera app with Camera API). Is there any specific param in order to enable the autofocus when requesting gUM? Thanks!
Flags: needinfo?(mhabicher)
Assignee | ||
Comment 15•9 years ago
|
||
Trying to reproduce on Flame, I seem to be hitting a crash after the "can I use the camera?" permission dialog.
Flags: needinfo?(mhabicher)
Assignee | ||
Comment 16•9 years ago
|
||
At some point the patch above stopped working.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•9 years ago
|
Keywords: regression
Assignee | ||
Comment 17•9 years ago
|
||
Borja, can you build gecko with this patch applied? I've verified that it restores autofocus functionality.
Attachment #8556038 -
Flags: review?(aosmond)
Attachment #8556038 -
Flags: feedback?(borja.bugzilla)
Comment 18•9 years ago
|
||
Autofocus seems to be working properly with your patch! Now we have the other thing related with the 'distorted' image after landing https://bugzilla.mozilla.org/show_bug.cgi?id=1104913, should we file a new bug? Thanks!
Flags: needinfo?(mhabicher)
Assignee | ||
Comment 19•9 years ago
|
||
(In reply to Borja Salguero [:borjasalguero] from comment #18) > Autofocus seems to be working properly with your patch! Now we have the > other thing related with the 'distorted' image after landing > https://bugzilla.mozilla.org/show_bug.cgi?id=1104913, should we file a new > bug? Thanks! Yes please, and CC myself and aosmond on it.
Flags: needinfo?(mhabicher)
Assignee | ||
Comment 20•9 years ago
|
||
Comment on attachment 8556038 [details] [diff] [review] Enable autofocus in WebRTC, v3 Per comment 18.
Attachment #8556038 -
Flags: feedback?(borja.bugzilla) → feedback+
Comment 21•9 years ago
|
||
Comment on attachment 8556038 [details] [diff] [review] Enable autofocus in WebRTC, v3 Review of attachment 8556038 [details] [diff] [review]: ----------------------------------------------------------------- LGTM.
Attachment #8556038 -
Flags: review?(aosmond) → review+
Assignee | ||
Comment 22•9 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/d3d2d29f0f7c
Assignee | ||
Comment 23•9 years ago
|
||
Borja, does this affect v2.2? If so, we'll need to get b2g32+ approval for this patch as well.
Flags: needinfo?(borja.bugzilla)
Assignee | ||
Comment 24•9 years ago
|
||
(Er, that should probably say b2g37 approval.)
Comment 25•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d3d2d29f0f7c
Status: REOPENED → RESOLVED
Closed: 10 years ago → 9 years ago
Resolution: --- → FIXED
Comment 26•9 years ago
|
||
Hi Mike! This is failing as well in 2.2 (just tried and it's not working properly). Could you ask for the approval? Thanks!
Flags: needinfo?(borja.bugzilla) → needinfo?(mhabicher)
Assignee | ||
Comment 27•9 years ago
|
||
Comment on attachment 8556038 [details] [diff] [review] Enable autofocus in WebRTC, v3 NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 1104913, bug 1103400 User impact if declined: autofocus doesn't work in getUserMedia() Testing completed: manual testing Risk to taking this patch (and alternatives if risky): minimal String or UUID changes made by this patch: none
Flags: needinfo?(mhabicher)
Attachment #8556038 -
Flags: approval-mozilla-b2g37?
Updated•9 years ago
|
Attachment #8556038 -
Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
Comment 28•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g37_v2_2/rev/f48ca0f73cdd
status-b2g-v2.2:
--- → fixed
status-b2g-master:
--- → fixed
status-firefox36:
--- → wontfix
status-firefox37:
--- → wontfix
status-firefox38:
--- → fixed
Target Milestone: mozilla37 → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•