public class GstObject extends GObject
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/GstObject.html
GstObject provides a root for the object hierarchy tree filed in by the
GStreamer library. It is currently a thin wrapper on top of GObject.
It is an abstract class that is not very usable on its own.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
GstObject.Handle |
GObject.GCallback, GObject.GInterfaceNativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>| Modifier | Constructor and Description |
|---|---|
protected |
GstObject(GstObject.Handle handle,
boolean needRef) |
protected |
GstObject(NativeObject.Initializer init)
Wraps an underlying C GstObject with a Java proxy
|
| Modifier and Type | Method and Description |
|---|---|
void |
addControlBinding(ControlBinding binding)
Attach a
ControlBinding to this object. |
String |
getAsString(String property)
Get the value of a GstObject property as a serialized String
representation of its value.
|
ControlBinding |
getControlBinding(String propertyName)
Gets the corresponding
ControlBinding for the property. |
String |
getName()
Returns a copy of the name of this object.
|
GstObject |
getParent()
Returns this object's parent, if there is one.
|
boolean |
hasActiveControlBindings()
Check if this object has active controlled properties.
|
boolean |
removeControlBinding(ControlBinding binding)
Removes the corresponding
ControlBinding. |
void |
setAsString(String property,
String data)
Set the value of a GstObject property from a String representation.
|
void |
setControlBindingDisabled(String propertyName,
boolean disabled)
This function is used to disable the control bindings on a property for
some time, i.e.
|
void |
setControlBindingsDisabled(boolean disabled)
This function is used to disable all controlled properties of the object
for some time, i.e.
|
boolean |
setName(String name)
Sets the name of this object, or gives this object a guaranteed unique
name (if name is null).
|
long |
suggestNextSync()
Returns a suggestion for timestamps where buffers should be split to get
best controller results.
|
boolean |
syncValues(long timestamp)
Sets the properties of the object, according to the
ControlSource
that (maybe) handle them and for the given timestamp. |
String |
toString() |
addCallback, connect, connect, disconnect, dispose, emit, emit, get, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getRefCount, getTypeName, invalidate, listPropertyNames, removeCallback, setclose, disown, equals, getPointer, getRawPointer, hashCodeprotected GstObject(NativeObject.Initializer init)
init - Initialization dataprotected GstObject(GstObject.Handle handle, boolean needRef)
public void setAsString(String property, String data)
The data value is deserialized using gst_value_deserialize.
property - the property to setdata - the value as a valid String representationIllegalArgumentException - if the data cannot be deserialized to
the required type.public String getAsString(String property)
The data value is serialized using gst_value_serialize.
property - the property to getpublic boolean setName(String name)
name - new name of objectpublic String getName()
public GstObject getParent()
nullpublic long suggestNextSync()
ClockTime.NONE if no
control-rate was set.public boolean syncValues(long timestamp)
ControlSource
that (maybe) handle them and for the given timestamp.
If this function fails, it is most likely the application developers fault. Most probably the control sources are not setup correctly.
timestamp - the time that should be processedpublic boolean hasActiveControlBindings()
public void setControlBindingsDisabled(boolean disabled)
syncValues(long) will do nothing.disabled - whether to disable the controllers or notpublic void setControlBindingDisabled(String propertyName, boolean disabled)
syncValues(long) will do nothing for the
property.propertyName - property to disabledisabled - whether to disable the controller or notpublic void addControlBinding(ControlBinding binding)
ControlBinding to this object. If there was already a
binding for this property it will be replaced.binding - the ControlBinding that should be usedIllegalStateException - if the binding has not been setup for this
objectpublic ControlBinding getControlBinding(String propertyName)
ControlBinding for the property.propertyName - name of the propertypublic boolean removeControlBinding(ControlBinding binding)
ControlBinding.binding - the binding to removepublic String toString()
toString in class NativeObjectCopyright © 2021 gstreamer-java. All rights reserved.