public class ElementFactory extends PluginFeature
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/GstElementFactory.html
Use the find(java.lang.String) and create(java.lang.String) methods to create element instances
or use make(java.lang.String, java.lang.String) as a convenient shortcut.
| Modifier and Type | Class and Description |
|---|---|
static class |
ElementFactory.ListType
The type of ElementFactory to filter.
|
PluginFeature.RankGstObject.HandleGObject.GCallback, GObject.GInterfaceNativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>| Modifier and Type | Field and Description |
|---|---|
static String |
GTYPE_NAME |
| Modifier and Type | Method and Description |
|---|---|
Element |
create(String name)
Creates a new element from the factory.
|
static ElementFactory |
find(String name)
Retrieve an instance of a factory that can produce
Elements |
String |
getAuthor()
Returns the name of the person who wrote the factory.
|
String |
getDescription()
Returns a description of the factory.
|
String |
getKlass()
Returns a string describing the type of factory.
|
String |
getLongName()
Returns the long, English name for the factory.
|
List<StaticPadTemplate> |
getStaticPadTemplates()
Gets the list of
StaticPadTemplate for this factory. |
static List<ElementFactory> |
listGetElements(ElementFactory.ListType type,
PluginFeature.Rank minrank)
Get a list of factories that match the given type.
|
static List<ElementFactory> |
listGetElementsFilter(ElementFactory.ListType type,
PluginFeature.Rank minrank,
Caps caps,
PadDirection direction,
boolean subsetonly)
Get a list of factories that match the given parameter.
|
static Element |
make(String factoryName,
String name)
Creates a new Element from the specified factory.
|
checkVersion, getName, getPlugin, getPluginName, getRank, setName, setRank, setRank, toStringaddControlBinding, getAsString, getControlBinding, getParent, hasActiveControlBindings, removeControlBinding, setAsString, setControlBindingDisabled, setControlBindingsDisabled, suggestNextSync, syncValuesaddCallback, connect, connect, disconnect, dispose, emit, emit, get, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getRefCount, getTypeName, invalidate, listPropertyNames, removeCallback, setclose, disown, equals, getPointer, getRawPointer, hashCodepublic static final String GTYPE_NAME
public Element create(String name)
name - the name to assign to the created ElementElementpublic String getAuthor()
public String getDescription()
public String getKlass()
public String getLongName()
public List<StaticPadTemplate> getStaticPadTemplates()
StaticPadTemplate for this factory.StaticPadTemplatepublic static ElementFactory find(String name)
Elementspublic static List<ElementFactory> listGetElements(ElementFactory.ListType type, PluginFeature.Rank minrank)
type - a ElementFactory.ListTypeminrank - Minimum rankpublic static List<ElementFactory> listGetElementsFilter(ElementFactory.ListType type, PluginFeature.Rank minrank, Caps caps, PadDirection direction, boolean subsetonly)
type - a ElementFactory.ListTypeminrank - Minimum rankcaps - a Capsdirection - a PadDirection to filter onsubsetonly - whether to filter on caps subsets or not.List of ElementFactory elements that match the
given requisits.Copyright © 2021 gstreamer-java. All rights reserved.