public class DeviceProviderFactory extends GstObject
DeviceProvider
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/GstDeviceProviderFactory.html
DeviceProviderFactory is used to create instances of device providers. A DeviceProviderfactory can be added to a Plugin as it is also a PluginFeature. Use the #find(java.lang.String) and {@link #get() } functions to create device provider instances or use {@link #getByName(java.lang.String) } as a convenient shortcut.
GstObject.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 |
|---|---|
static DeviceProviderFactory |
find(String name)
Search for an device provider factory of the given name.
|
DeviceProvider |
get()
Returns the
DeviceProvider of the type defined by the given
device provider factory. |
static DeviceProvider |
getByName(String factoryName)
Returns the device provider of the type defined by the given device
provider factory.
|
static List<DeviceProviderFactory> |
getDeviceProviders(PluginFeature.Rank minRank)
Get a list of factories with a rank greater or equal to minrank .
|
String |
getMetadata(String key)
Get the metadata on factory with key.
|
boolean |
hasClasses(String classes)
Check if factory matches all of the given classes
|
addControlBinding, getAsString, getControlBinding, getName, getParent, hasActiveControlBindings, removeControlBinding, setAsString, setControlBindingDisabled, setControlBindingsDisabled, setName, suggestNextSync, syncValues, toStringaddCallback, 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 DeviceProvider get()
DeviceProvider of the type defined by the given
device provider factory.public String getMetadata(String key)
key - public boolean hasClasses(String classes)
classes - a "/" separate list of classes to match, only match if all
classes are matched.public static DeviceProviderFactory find(String name)
name - name of factory to findpublic static DeviceProvider getByName(String factoryName)
factoryName - a named factory to instantiatepublic static List<DeviceProviderFactory> getDeviceProviders(PluginFeature.Rank minRank)
minRank - minimum rankCopyright © 2021 gstreamer-java. All rights reserved.