public class ElementFactory
ElementFactory is used to create instances of elements.
A GstElementfactory can be added to a Plugin as it is also a
Use the find and
create functions to create element instances or use
make as a convenient shortcut.
The following code example shows you how to create a GstFileSrc element.
Using an element factory:
gst_init (&argc, &argv);
srcfactory = gst_element_factory_find ("filesrc");
g_return_if_fail (srcfactory != NULL);
src = gst_element_factory_create (srcfactory, "src");
g_return_if_fail (src != NULL);
Last reviewed on 2005-11-23 (0.9.5)
- public static ElementFactory? find (string name)
Search for an element factory of the given name.
- public static List<ElementFactory> list_filter (List<ElementFactory> list, Caps caps, PadDirection direction, bool subsetonly)
Filter out all the elementfactories in
list that can handle
caps in the given direction.
- public static List<ElementFactory> list_get_elements (ElementFactoryListType type, Rank minrank)
Get a list of factories that match the given
- public static Element? make (string factoryname, string? name)
Create a new element of the type defined by the given element factory.
All known members inherited from class Gst.PluginFeature
All known members inherited from class Gst.Object
All known members inherited from class GLib.Object