forked from lynckia/licode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into production
- Loading branch information
Showing
10 changed files
with
173 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
erizo_controller/erizoClient/extras/firefox-extension/README.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Instructions to create your own Firefox Screensharing Extension: | ||
|
||
1. Modify bootstrap.js file, updating the variable domainsUsed with your own domains. | ||
|
||
2. Modify install.rdf with your own extension information | ||
|
||
3. Choose your icon (48x48) and name it icon.png | ||
|
||
4. Run createExtension.sh script to create your .xpi containing the three files. | ||
|
||
5. Install the .xpi file in Firefox | ||
|
||
6. Enjoy Firefox Screensharing with Licode! |
40 changes: 40 additions & 0 deletions
40
erizo_controller/erizoClient/extras/firefox-extension/bootstrap.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* The source code can be found here: HenrikJoreteg/getScreenMedia/firefox-extension-sample | ||
*/ | ||
|
||
var domainsUsed = ["*.dit.upm.es"]; | ||
var addon_domains = []; | ||
var allowed_domains = "media.getusermedia.screensharing.allowed_domains"; | ||
|
||
function startup(data, reason) { | ||
if (reason === APP_STARTUP) { | ||
return; | ||
} | ||
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); | ||
var values = prefs.getCharPref(allowed_domains).split(','); | ||
domainsUsed.forEach(function (domain) { | ||
if (values.indexOf(domain) === -1) { | ||
values.push(domain); | ||
addon_domains.push(domain); | ||
} | ||
}); | ||
prefs.setCharPref(allowed_domains, values.join(',')); | ||
} | ||
|
||
function shutdown(data, reason) { | ||
if (reason === APP_SHUTDOWN) { | ||
return; | ||
} | ||
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch); | ||
var values = prefs.getCharPref(allowed_domains).split(','); | ||
values = values.filter(function (value) { | ||
return addon_domains.indexOf(value) === -1; | ||
}); | ||
prefs.setCharPref(allowed_domains, values.join(',')); | ||
} | ||
|
||
function install(data, reason) {} | ||
|
||
function uninstall(data, reason) {} |
7 changes: 7 additions & 0 deletions
7
erizo_controller/erizoClient/extras/firefox-extension/createExtension.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
echo "Creating FirefoxExtension.xpi..." | ||
|
||
zip ./FirefoxExtension.xpi icon.png bootstrap.js install.rdf | ||
|
||
echo "FirefoxExtension.xpi ready!" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
erizo_controller/erizoClient/extras/firefox-extension/install.rdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0"?> | ||
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> | ||
<Description about="urn:mozilla:install-manifest"> | ||
<em:id>[email protected]</em:id> | ||
<em:type>2</em:type> | ||
<em:name>Lynckia Screensharing</em:name> | ||
<em:description>Extension to allow screen sharing in Licode applications.</em:description> | ||
<em:version>1.0</em:version> | ||
<em:bootstrap>true</em:bootstrap> | ||
<em:creator>Lynckia</em:creator> | ||
<em:homepageURL>lynckia.com/licode</em:homepageURL> | ||
<em:iconURL></em:iconURL> | ||
<em:targetApplication> | ||
<Description> | ||
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> | ||
<em:minVersion>33.0</em:minVersion> | ||
<em:maxVersion>100000.*</em:maxVersion> | ||
</Description> | ||
</em:targetApplication> | ||
</Description> | ||
</RDF> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters