:right-sidebar: True MetaFactory =================================================================== .. currentmodule:: gi.repository.Gst .. versionadded:: 1.28 .. class:: MetaFactory(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gst.PluginFeature`, :class:`~gi.repository.Gst.Object`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Register a :obj:`~gi.repository.Gst.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 -------------------------------------------------------------------------------- .. code-block:: C :dedent: static gboolean plugin_init (GstPlugin * plugin) { return gst_meta_factory_register (plugin, my_meta_get_info()); } Methods ------- .. rst-class:: interim-class .. class:: MetaFactory :no-index: .. classmethod:: load(factoryname: str) -> ~gi.repository.Gst.MetaInfo Loads a previously registered :obj:`~gi.repository.Gst.MetaInfo` from the registry. .. versionadded:: 1.28 :param factoryname: The name of the :obj:`~gi.repository.Gst.MetaInfo` to load .. classmethod:: register(plugin: ~gi.repository.Gst.Plugin, meta_info: ~gi.repository.Gst.MetaInfo) -> bool Registers a new :obj:`~gi.repository.Gst.MetaInfo` in the registry .. versionadded:: 1.28 :param plugin: The :obj:`~gi.repository.Gst.Plugin` to register ``meta_info`` for :param meta_info: The :obj:`~gi.repository.Gst.MetaInfo` to register