public class PositionQuery extends Query
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/GstQuery.html#gst-query-new-position
Query.TypesMiniObject.HandleNativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>GTYPE_NAME| Constructor and Description |
|---|
PositionQuery(Format format)
Constructs a new query stream position query object.
|
| Modifier and Type | Method and Description |
|---|---|
Format |
getFormat()
Gets the
Format of this position query. |
long |
getPosition()
Gets the position in terms of the
Format of the query. |
void |
setPosition(Format format,
long position)
Answers a position query by setting the requested value in the given
format.
|
String |
toString()
Gets the position as a user-readable string.
|
getStructurecopy, getRefCount, isWritable, makeWritableclose, disown, dispose, equals, getPointer, getRawPointer, hashCode, invalidatepublic void setPosition(Format format, long position)
format - the requested Formatposition - the position to set in the answerpublic Format getFormat()
Format of this position query.public long getPosition()
Format of the query.public String toString()
toString in class NativeObjectCopyright © 2021 gstreamer-java. All rights reserved.