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