Ignaz Forster wrote:
>
> Found a solution to use also use a system wide directory without having
> to symlink it into the user profile. The following extended code will
> add your directory as an additional path where GMP plugins are searched
> for before setting the preferences:
>
> Components.utils.import("resource://gre/modules/FileUtils.jsm");
> var gmpService =
> Components.classes["@mozilla.org/gecko-media-plugin-service;1"].getService(Components.interfaces.mozIGeckoMediaPluginChromeService);
>
> gmpService.addPluginDirectory(FileUtils.getDir("GreD", ["browser",
> "plugins", "gmp-gmpopenh264", "system-installed"]).path);
> lockPref("media.gmp-gmpopenh264.autoupdate", false);
> defaultPref("media.gmp-gmpopenh264.enabled", true);
> lockPref("media.gmp-gmpopenh264.version", "system-installed");
Thanks - that works
James Pearson
_______________________________________________
Enterprise mailing list
[email protected]
https://mail.mozilla.org/listinfo/enterprise
To unsubscribe from this list, please visit
https://mail.mozilla.org/listinfo/enterprise or send an email to
[email protected] with a subject of "unsubscribe"