getUserMedia for Firefox OS

こ雲淡風輕ζ 提交于 2019-12-04 16:52:05

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.

you need add video-capture permissions in manifest.webapp in 1.4 for getUserMedia video, and audio-capture permissions in manifest.webapp in 1.2 for getUserMedia audio, ex:

  "permissions": {
    "audio-capture": {},
    "video-capture": {}
  }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!