开发者

JavaScript Camera API Android (Froyo)

开发者 https://www.devze.com 2023-01-02 02:38 出处:网络
I am trying to access the JavaScript Camera API via the Android browser as demo\'d at Google I开发者_开发问答O on Froyo (yes, I have Froyo on my Nexus1).Since there is no documentation, I am going by

I am trying to access the JavaScript Camera API via the Android browser as demo'd at Google I开发者_开发问答O on Froyo (yes, I have Froyo on my Nexus1). Since there is no documentation, I am going by the W3C specs. But, I am unable to access the navigator.device object and unable to access navigator.camera either - both return undefined. Can anyone point me to documentation or have a solution ?


The demo at Google IO was for a future version of Android, not Froyo. As you saw in the demo, even the Googlers themselves couldn't get it working at first go. The demo was of a very early-stage (alpha or earlier) prototype. I don't think you can currently do what you're trying to do within the browser.

0

精彩评论

暂无评论...
验证码 换一张
取 消