Gst.MetaFactory¶
- Subclasses:
None
Methods¶
- Inherited:
Gst.PluginFeature (10), Gst.Object (29), GObject.Object (37)
- Structs:
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gst.MetaFactory(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Register a
Gst.MetaInfothat can be automatically loaded the first time it is used.In general, applications and plugins don’t need to use the factory beyond registering the meta in a plugin init function. Once that is done, the meta is stored in the registry, and ready as soon as the registry is loaded.
- Registering a meta for dynamic loading
static gboolean plugin_init (GstPlugin * plugin) { return gst_meta_factory_register (plugin, my_meta_get_info()); }
New in version 1.28.
- classmethod load(factoryname)[source]¶
- Parameters:
factoryname (
str) – The name of theGst.MetaInfoto load- Returns:
A
Gst.MetaInfoorNoneif not found- Return type:
Loads a previously registered
Gst.MetaInfofrom the registry.New in version 1.28.
- classmethod register(plugin, meta_info)[source]¶
- Parameters:
plugin (
Gst.Plugin) – TheGst.Pluginto register meta_info formeta_info (
Gst.MetaInfo) – TheGst.MetaInfoto register
- Return type:
Registers a new
Gst.MetaInfoin the registryNew in version 1.28.