Gst.DynamicTypeFactory

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.DynamicTypeFactory Gst.DynamicTypeFactory Gst.PluginFeature Gst.PluginFeature Gst.Object->Gst.PluginFeature Gst.PluginFeature->Gst.DynamicTypeFactory

Subclasses:

None

Methods

Inherited:

Gst.PluginFeature (10), Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

load (factoryname)

Virtual Methods

Inherited:

Gst.Object (1), GObject.Object (7)

Properties

Inherited:

Gst.Object (2)

Signals

Inherited:

Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Object (1), GObject.Object (1)

Class Details

class Gst.DynamicTypeFactory(**kwargs)
Bases:

Gst.PluginFeature

Abstract:

No

Structure:

Gst.DynamicTypeFactoryClass

Gst.DynamicTypeFactory 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
static gboolean
plugin_init (GstPlugin * plugin)
{
  return gst_dynamic_type_register (plugin, GST_TYPE_CUSTOM_CAPS_FIELD);
}

New in version 1.12.

classmethod load(factoryname)[source]
Parameters:

factoryname (str) –

Return type:

GObject.GType