MetaFactory#

Added in version 1.28.

class MetaFactory(**properties: Any)#

Superclasses: PluginFeature, Object, InitiallyUnowned, Object

Register a MetaInfo that 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());
}

Methods#

class MetaFactory
classmethod load(factoryname: str) MetaInfo#

Loads a previously registered MetaInfo from the registry.

Added in version 1.28.

Parameters:

factoryname – The name of the MetaInfo to load

classmethod register(plugin: Plugin, meta_info: MetaInfo) bool#

Registers a new MetaInfo in the registry

Added in version 1.28.

Parameters:
  • plugin – The Plugin to register meta_info for

  • meta_info – The MetaInfo to register