nttcom / SkyWay-ScreenShare

[Deprecated] This is a library for easy implementation of screen sharing function in the WebRTC of web applications.
20 stars 11 forks source link

FirefoxのExtensionが認識されない #17

Open yusuke84 opened 9 years ago

yusuke84 commented 9 years ago

スクリーンシェアのPermissionとContetnsScriptのPermissionで書き方が異なる。 例えばskyway.ioの場合は、SCは ["skyway.io","*.skyway.io”]、ContentScriptは ["*.skyway.io”] となる。(ContentScript側は*が必須)

yusuke84 commented 8 years ago

contents-scriptを書き換える。

var domains_to_add = ["*.skyway.io","skyway.io"];
var addon_domains = [];
var allowed_domains_pref = 'media.getusermedia.screensharing.allowed_domains';
var enable_screensharing_pref = 'media.getusermedia.screensharing.enabled';

exports.main = function (options, callbacks) {
    pageMod.PageMod({
        contentScriptWhen: 'start',
        include: ["*.skyway.io"],
        contentScriptFile: self.data.url('content-script.js')
    });