public class DeviceProvider extends GstObject
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/gstreamer-GstDeviceProvider.html
A DeviceProvider subclass is provided by a plugin that handles devices if there is a way to programatically list connected devices. It can also optionally provide updates to the list of connected devices.
Each DeviceProvider subclass is a singleton, a plugin should normally provide a single subclass for all devices.
Applications would normally use a DeviceMonitor to monitor devices
from all relevant providers.
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 |
|---|---|
boolean |
canMonitor()
Whether the provider can monitor.
|
Bus |
getBus()
Get the
Bus of this DeviceProvider |
List<Device> |
getDevices()
Gets a list of
Device that this provider understands. |
DeviceProviderFactory |
getFactory()
Retrieves the factory that was used to create this device provider.
|
boolean |
start()
Starts providering the devices.
|
void |
stop()
Decreases the use-count by one.
|
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 boolean canMonitor()
public List<Device> getDevices()
Device that this provider understands. This may
actually probe the hardware if the provider is not currently started.public DeviceProviderFactory getFactory()
DeviceProviderFactory used for creating this device
provider.public boolean start()
Since the DeviceProvider is a singleton, start may already have been
called by another user of the object, stop() needs to be called
the same number of times.
public void stop()
start() was called.Copyright © 2021 gstreamer-java. All rights reserved.