JavaScript 相机 API Android (Froyo) [英] JavaScript Camera API Android (Froyo)
问题描述
我正在尝试通过 Android 浏览器访问 JavaScript Camera API,就像在 Google IO on Froyo 上的演示一样(是的,我的 Nexus1 上有 Froyo).由于没有文档,我将遵循 W3C 规范.但是,我无法访问 navigator.device 对象,也无法访问 navigator.camera - 两者都返回未定义.任何人都可以指出我的文档或有解决方案吗?
I am trying to access the JavaScript Camera API via the Android browser as demo'd at Google IO 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 ?
推荐答案
Google IO 上的演示是针对 Android 的未来版本,不是 Froyo.正如您在演示中看到的,即使是 Google 员工自己也无法一开始就让它工作.该演示是一个非常早期(alpha 或更早)的原型.我认为您目前无法在浏览器中执行您想要执行的操作.
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.
这篇关于JavaScript 相机 API Android (Froyo)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!