【发布时间】:2014-12-05 07:01:36
【问题描述】:
我是 chrome 扩展的新手。是否有可能通过手动(javascript)或使用清单配置为 chrome 扩展提供麦克风访问权限。
我已通过下载 twilio.js 成功包含 twilio,并将协议更改为“https”,以便在 chrome 扩展的 background.html 中使用。
Manifest.js 字段如下:
"permissions":["http://*/*", "https://*/*", "*://mail.google.com/*", "storage", "unlimitedStorage", "contextMenus", "cookies", "tabs", "notifications", "activeTab", "background","identity", "*://*.twilio.com/*"],
"content_security_policy": "script-src 'self' 'unsafe-eval' https://apis.google.com https://*.twilio.com; object-src 'self' https://*.twilio.com",
现在,当分机使用 twilio 拨打/接听电话并接受连接时。它从 Twilio.Device.error 方法抛出错误,如下所示
error.message is **User denied access to microphone**.
谁能帮我解决这个错误?
【问题讨论】:
标签: javascript google-chrome-extension twilio