public class Device extends GstObject
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/gstreamer-GstDevice.html
Device objects are created by DeviceProvider objects, which can be
aggregated by DeviceMonitor objects.
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 |
|---|---|
Element |
createElement(String name)
Creates the element with all of the required parameters set to use this
device.
|
Caps |
getCaps()
Get the
Caps that this device supports. |
String |
getDeviceClass()
Gets the "class" of a device.
|
String |
getDisplayName()
Gets the user-friendly name of the device.
|
Structure |
getProperties()
Gets the extra properties of a device.
|
boolean |
hasClasses(String classes)
Check if device matches all of the given classes.
|
boolean |
hasClasses(String[] classes)
Check if device matches all of the given classes.
|
boolean |
reconfigureElement(Element element)
Tries to reconfigure an existing element to use the device.
|
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 Element createElement(String name)
name - name of new element, or NULL to automatically create a unique
nameElement configured to use this device.public Caps getCaps()
Caps that this device supports.public String getDeviceClass()
DeviceProvider that produced this device.public String getDisplayName()
public boolean hasClasses(String classes)
classes - a "/"-separated list of device classes to match, only
match if all classes are matchedpublic boolean hasClasses(String[] classes)
classes - an array of classes to match, only match if all classes
are matched.public boolean reconfigureElement(Element element)
createElement(java.lang.String)
Note: This should only be implemented for elements can change their device in the PLAYING state.
element - the element to be configuredpublic Structure getProperties()
Copyright © 2021 gstreamer-java. All rights reserved.