public class SegmentQuery extends Query
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/GstQuery.html#gst-query-new-segment
Query.TypesMiniObject.HandleNativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>GTYPE_NAME| Constructor and Description |
|---|
SegmentQuery(Format format)
Constructs a new segment query object.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getEnd()
Gets the end of the playback range.
|
Format |
getFormat()
Gets the format of the start and stop values in the segment query.
|
double |
getRate()
Gets the rate of the segment Query.
|
long |
getStart()
Gets the start of the playback range.
|
void |
setSegment(double rate,
Format format,
long startValue,
long stopValue)
Answers a segment query by setting the requested values.
|
getStructurecopy, getRefCount, isWritable, makeWritableclose, disown, dispose, equals, getPointer, getRawPointer, hashCode, invalidate, toStringpublic void setSegment(double rate,
Format format,
long startValue,
long stopValue)
The normal playback segment of a pipeline is 0 to duration at the default
rate of 1.0. If a seek was performed on the pipeline to play a different
segment, this query will return the range specified in the last seek.
startValue and stopValue will respectively contain the
configured playback range start and stop values expressed in format. The
values are always between 0 and the duration of the media and
startValue <= stopValue. rate will contain the playback
rate. For negative rates, playback will actually happen from
stopValue to startValue.
rate - the rate of the segment.format - the Format of the segment values.startValue - the start value.stopValue - the stop value.public double getRate()
public Format getFormat()
public long getStart()
public long getEnd()
Copyright © 2021 gstreamer-java. All rights reserved.