Element.register

bool register(gst.plugin.Plugin plugin, string name, uint rank, gobject.types.GType type)

Create a new elementfactory capable of instantiating objects of the type and add the factory to plugin.

Parameters

plugin#GstPlugin to register the element with, or null for a static element.
namename of elements of this type
rankrank of element (higher rank means more importance when autoplugging)
typeGType of element to register

Returns

true, if the registering succeeded, false on error