GeckoMediaPlugins: Difference between revisions

Jump to navigation Jump to search
No more well-known directories: plugins are found via API
(No more well-known directories: plugins are found via API)
Line 50: Line 50:
== How Gecko Loads a GMP ==
== How Gecko Loads a GMP ==


Gecko scans known locations either on disk or in the Windows registry for GMPs.
Firefox addons and the Firefox addon manager tells Gecko where to look for plugins, using the mozIGeckoMediaPluginService.addPluginDirectory and .removePluginDirectory API.


* Windows
Developers prototyping new addons may also use the environment variable MOZ_GMP_PATH to specify a list of directories.
** 'Path' entry for child entries of registry entry 'Software\\MozillaPlugins' under 'ROOT_KEY_LOCAL_MACHINE'
* OS X
** <code>~/Library/Internet Plugins/</code>
** <code>/Library/Internet Plugins/</code>
* Linux
** <code>/usr/lib/mozilla/plugins/</code>


It maintains a list of known GMPs, and when an API is requested by a consumer it scans the list for a GMP that can provide the API.
It maintains a list of known GMPs, and when an API is requested by a consumer it scans the list for a GMP that can provide the API.
Confirmed users, Bureaucrats and Sysops emeriti
1,217

edits

Navigation menu