我可以在我的应用程序在Firefox OS中获得一个实时的摄像机图像吗? [英] Can I get a live camera image inside my App in Firefox OS?

查看:159
本文介绍了我可以在我的应用程序在Firefox OS中获得一个实时的摄像机图像吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我现在看看Firefox OS。我想尝试的一件事是使用画布等操作设备相机的活动Feed。

So I am having a look into Firefox OS right now. One thing I would like to try is to manipulate the device camera's live feed using canvas et.al.

从我在博客帖子中可以看到的内容(例如 这一个 )和样板应用程序中的代码这总是使用 MozActivity 来完成,这意味着用户正在离开应用程序,拍摄照片并将此图片传回应用程序,我可以对其进行后处理。

From what I can see in the blog posts (like this one) and the code in the boilerplate app this is always done using a MozActivity, meaning that the user is leaving the application, takes a picture and passes this picture back to the application, where I could post-process it.

但是对于实时操作,我需要在我的应用程序中有一个实时摄像头,就像你使用 getUserMedia 访问计算机的网络摄像头时。 getUserMedia 在Firefox OS模拟器中似乎不支持。

But for live manipulation I would need to have a live camera feed inside my App, just like you would do using getUserMedia when accessing a computer's webcam. getUserMedia doesn't seem to be supported in the Firefox OS simulator though.

一些API我缺少?

推荐答案

我会回答这个与从邮件列表的答复尚未):

I'll answer this with the response I got from the Mailing List (the answer is "not yet"):


WebRTC将(希望)登陆Firefox OS 1.2(作为参考,
初始启动是在1.0.1,紧随其后,但依赖于运营商
是1.1)。 WebRTC是一个很多低级硬件依赖,所以它
可能需要更长的时间。

WebRTC will (hopefully) land in Firefox OS 1.2 (as reference, the initial launch is on 1.0.1, closely followed but dependent on carriers is 1.1). WebRTC is a of lot of low-level hardware dependencies, so it might take longer.

您可以关注此元错误及其依赖项:
https://bugzilla.mozilla.org/show_bug.cgi?id=750011

You can follow along on this meta bug and its dependencies: https://bugzilla.mozilla.org/show_bug.cgi?id=750011

感谢您的回答,Mozilla,不能等待1.2!

Thanks for the answer, Mozilla, can't wait for 1.2!

这篇关于我可以在我的应用程序在Firefox OS中获得一个实时的摄像机图像吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆