Plugin.registerStatic

bool registerStatic(int majorVersion, int minorVersion, string name, string description, gst.types.PluginInitFunc initFunc, string version_, string license, string source, string package_, string origin)

Registers a static plugin, ie. a plugin which is private to an application or library and contained within the application or library (as opposed to being shipped as a separate module file).

You must make sure that GStreamer has been initialised (with [gst.global.init_] or via [gst.global.initGetOptionGroup]) before calling this function.

Parameters

majorVersionthe major version number of the GStreamer core that the plugin was compiled for, you can just use GST_VERSION_MAJOR here
minorVersionthe minor version number of the GStreamer core that the plugin was compiled for, you can just use GST_VERSION_MINOR here
namea unique name of the plugin (ideally prefixed with an application- or library-specific namespace prefix in order to avoid name conflicts in case a similar plugin with the same name ever gets added to GStreamer)
descriptiondescription of the plugin
initFuncpointer to the init function of this plugin.
version_version string of the plugin
licenseeffective license of plugin. Must be one of the approved licenses (see #GstPluginDesc above) or the plugin will not be registered.
sourcesource module plugin belongs to
package_shipped package plugin belongs to
originURL to provider of plugin

Returns

true if the plugin was registered correctly, otherwise false.