【问题标题】:Firefox webRTC screenshare enable flags via codeFirefox webRTC 屏幕共享通过代码启用标志
【发布时间】:2016-09-26 09:14:39
【问题描述】:

我正在为 firefox webRTC 屏幕共享尝试此测试 https://mozilla.github.io/webrtc-landing/gum_test.html。 它需要在 about:config 中添加

media.getusermedia.screensharing.enabled

为真并添加域名

media.getusermedia.screensharing.allowed_domains

有一种方法可以做到这一点:在 mozilla 用户配置文件中更改 prefs.js 文件。但我不想那样做。有没有像扩展(chrome提供这个)这样的其他方式通过代码来完成这个任务?

【问题讨论】:

    标签: javascript firefox firefox-addon webrtc screensharing


    【解决方案1】:

    我自己找到了答案。您必须构建一个扩展程序才能在 allowed_domains 中添加您的域名。扩展步骤是here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多