incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-753) ER: API to query if device has a camera
Date Fri, 11 May 2012 15:38:48 GMT

     [ https://issues.apache.org/jira/browse/CB-753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Filip Maj updated CB-753:
-------------------------

    Priority: Minor  (was: Major)

There was a System Information API that the DAP worked on, and it had an API with which you
could [check input devices|http://dev.w3.org/2009/dap/system-info/#input-devices]. This spec
has since been shelved by the W3C :(

Even the latest [getUserMedia spec|http://dev.w3.org/2011/webrtc/editor/getusermedia.html]
has no way to first query for the existence of a camera or input device. In all of the W3C
specs, you have to go through the motions of attempting to get the media first, parse errors,
etc.

Perhaps we could add it to the {{navigator.camera}} API since that is our own home grown API.
I will post about it on the dev mailing list and see what's up. I would recommend you guys
sign up for the mailing list and make your case / support the API extension on there as well.
                
> ER: API to query if device has a camera
> ---------------------------------------
>
>                 Key: CB-753
>                 URL: https://issues.apache.org/jira/browse/CB-753
>             Project: Apache Cordova
>          Issue Type: New Feature
>    Affects Versions: 1.7.0
>            Reporter: Jean-Pierre
>            Priority: Minor
>
> Cordova does not offer any API to query the device for its capabilities, so one cannot
know if it has a camera with which to take a picture without attempting to take a picture,
falling through the error handler and then hard-match the error code -- a pretty poor user
experience. i have seen some suggestion to check device.camera, but a device may still have
a library to pull an image from while not having a camera, so that isn't likely helpful. there
isn't even any way to find the specific hardware revision to match off that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message