:right-sidebar: True DynamicTypeFactory =================================================================== .. currentmodule:: gi.repository.Gst .. versionadded:: 1.12 .. class:: DynamicTypeFactory(**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` ``GstDynamicTypeFactory`` is used to represent a type that can be automatically loaded the first time it is used. For example, a non-standard type for use in caps fields. In general, applications and plugins don't need to use the factory beyond registering the type in a plugin init function. Once that is done, the type is stored in the registry, and ready as soon as the registry is loaded. Registering a type for dynamic loading -------------------------------------------------------------------------------- .. code-block:: C :dedent: static gboolean plugin_init (GstPlugin * plugin) { return gst_dynamic_type_register (plugin, GST_TYPE_CUSTOM_CAPS_FIELD); } Methods ------- .. rst-class:: interim-class .. class:: DynamicTypeFactory :no-index: .. classmethod:: load() -> ~gobject.GType