GeckoMediaPlugins: Difference between revisions

Jump to navigation Jump to search
Specified that the "Version" field of .info file a should be a whole non-negative integer.
(Specified that the "Version" field of .info file a should be a whole non-negative integer.)
Line 51: Line 51:
Name: MyCompany h.264 Plugin
Name: MyCompany h.264 Plugin
Description: Provides encoding and decoding of h.264 video.
Description: Provides encoding and decoding of h.264 video.
Version: 2.1
Version: 2
APIs: encode-video[h264], decode-video[h264]
APIs: encode-video[h264], decode-video[h264]
</pre>
</pre>


The capability record lists strings used to identify APIs provided by the GMP. Each API can (optionally) have a list of tags associated with it, giving further information about what is supported. The separator character for the list of tags is ":" (e.g. "[aFormat:bFormat:cFormat]"). In this example the plugin is stating that it can operate on "h264" video, which is understood by Gecko. This allows Gecko to know what formats are supported without loading the plugin.
The capability record lists strings used to identify APIs provided by the GMP. Each API can (optionally) have a list of tags associated with it, giving further information about what is supported. The separator character for the list of tags is ":" (e.g. "[aFormat:bFormat:cFormat]"). In this example the plugin is stating that it can operate on "h264" video, which is understood by Gecko. This allows Gecko to know what formats are supported without loading the plugin.
The "Version" field must be a whole non-negative integer value. For EME GMPs, the version of plugin can be requested in the keySystem string when requesting access to the MediaKeys from JavaScript. For example, to ensure you have version 1 of the ClearKey CDM, from JavaScript call navigator.requestMediaKeySystemAccess("org.w3.clearkey.1", ...).


== How Gecko Loads a GMP ==
== How Gecko Loads a GMP ==
Confirmed users
91

edits

Navigation menu