Plugin.registerStatic

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_init() or via gst_init_get_option_group()) before calling this function.

class Plugin
static
int
registerStatic
(,,
string name
,,,
string versio
,
string license
,
string source
,
string p
,
string origin
)

Parameters

majorVersion int

the major version number of the GStreamer core that the plugin was compiled for, you can just use GST_VERSION_MAJOR here

minorVersion int

the minor version number of the GStreamer core that the plugin was compiled for, you can just use GST_VERSION_MINOR here

name string

a 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)

description string

description of the plugin

initFunc GstPluginInitFunc

pointer to the init function of this plugin. [scope call]

license string

effective license of plugin. Must be one of the approved licenses (see GstPluginDesc above) or the plugin will not be registered.

source string

source module plugin belongs to

origin string

URL to provider of plugin

Return Value

Type: int

TRUE if the plugin was registered correctly, otherwise FALSE.

Meta