发布于 2016-01-13 14:23:35
我实际上也在做同样的事情。
这就是如何做到这一点- https://github.com/Noitidart/FoxSpeak/issues/4
我们在这里看到- https://dxr.mozilla.org/mozilla-central/source/browser/modules/webrtcUI.jsm#170
receiveMessage: function(aMessage) {
switch (aMessage.name) {
// Add-ons can override stock permission behavior by doing:
//
// var stockReceiveMessage = webrtcUI.receiveMessage;
//
// webrtcUI.receiveMessage = function(aMessage) {
// switch (aMessage.name) {
// case "rtcpeer:Request": {
// // new code.
// break;
// ...
// default:
// return stockReceiveMessage.call(this, aMessage);
//
// Intercepting gUM and peerConnection requests should let an add-on
// limit PeerConnection activity with automatic rules and/or prompts
// in a sensible manner that avoids double-prompting in typical
// gUM+PeerConnection scenarios. For example:他们允许插件注入到这里。我还没来得及读完这篇文章,但如果你比我先读完,请分享给我。:)
https://stackoverflow.com/questions/34737746
复制相似问题