适用于Firefox OS的getUserMedia [英] getUserMedia for Firefox OS

查看:180
本文介绍了适用于Firefox OS的getUserMedia的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据说getUserMedia )跟踪那个问题,我们正在积极努力为这个ASAP找到解决办法。


It was said that getUserMedia would land on Firefox OS 1.2. I have read the documentation and tried to look for it in the Google Groups, but I have not found anything related to it.

I have developed a web app that works on Firefox Nightly (so, it works in Gecko):

But when I try to use it in Firefox OS 1.4, I get a "Permission denied" error:

I have tried to add the following permission to the manifest:

  "permissions":{
    "camera":{}
  }

But didn't solve the problem. Is there any other permission that I would need to add?

解决方案

getUserMedia support for the microphone landed in FxOS v1.2. getUserMedia support for the camera just landed on trunk (v1.4) about a week ago. The final piece to land was support for permission prompts : bug 853356 in bugzilla.mozilla.org (https://bugzilla.mozilla.org/show_bug.cgi?id=853356). Prior to a week ago, you would have gotten a permission error.

Currently the camera always returns frames in landscape mode. Bug 970183 (https://bugzilla.mozilla.org/show_bug.cgi?id=970183) tracks that problem, and we're actively working to land a fix for this ASAP.

这篇关于适用于Firefox OS的getUserMedia的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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